jackal / bin-locator
v0.5.39
2020-04-04 08:15 UTC
Requires
- php: >=5.6
- symfony/process: >=2.8
Requires (Dev)
- brainmaestro/composer-git-hooks: ^2.8
- friendsofphp/php-cs-fixer: ^2.16
- phpunit/phpunit: ^4.8
README
Installation
composer require jackal/bin-locator
##Usage
Get executable path in your local system
require_once __DIR__ . '/vendor/autoload.php';
$locator = new \Jackal\BinLocator\BinLocator('php');
var_dump($locator->locate());
Get Process instance
require_once __DIR__ . '/vendor/autoload.php';
$locator = new \Jackal\BinLocator\BinLocator('ls');
$process = $locator->getProcess(['-la']);
$process->run();
var_dump($process->getOutput());