jackal/bin-locator

v0.5.39 2020-04-04 08:15 UTC

This package is auto-updated.

Last update: 2024-11-04 18:49:15 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License Scrutinizer Code Quality Build Status

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());