/bin-check

Check if a binary is working by checking its exit code

Primary LanguagePHPMIT LicenseMIT

bin-check

Latest Stable Version Travis Build Status Build status Coverage Status

Check if a binary is working by checking its exit code

Install

The utility can be installed with Composer:

$ composer require bin-check

Usage

use Itgalaxy\BinCheck\BinCheck;

try {
    $binCheck = new BinCheck('path/to/bin', ['--help']);
    $binCheck->check();
} catch (\Exception $exception) {
    echo $exception->message;
}

Related

Contribution

Feel free to push your code if you agree with publishing under the MIT license.