lucajackal85 / BinLocator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BinLocator

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

About


Languages

Language:PHP 100.0%