PHP code example of jackal / bin-locator

1. Go to this page and download the library: Download jackal/bin-locator library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jackal / bin-locator example snippets




$locator = new \Jackal\BinLocator\BinLocator('php');

var_dump($locator->locate()); 




$locator = new \Jackal\BinLocator\BinLocator('ls');

$process = $locator->getProcess(['-la']);

$process->run();

var_dump($process->getOutput());