Add package repository
"repositories": [
{
"type": "vcs",
"url": "https://github.com/ivok/fsearch.git"
}
],
Install the package
composer require ivo/fsearch
$result = Fsearch::search($this->argument('content'), $this->argument('path'));
print_r($result)
http://domain.tld/fs
php artisan fsearch "content to search" "path/to/dir"