itgalaxy / bin-check
Check if a binary is working by checking its exit code
2.0.0
2017-04-07 09:49 UTC
Requires
- php: ^5.6 || ^7.0
- symfony/process: ^2.7 | ^3.0
- webmozart/path-util: ^2.3.0
Requires (Dev)
- phpunit/php-code-coverage: ^4.0.0
- phpunit/phpunit: ^5.7.0
- satooshi/php-coveralls: ^1.0.0
This package is auto-updated.
Last update: 2024-12-13 12:07:30 UTC
README
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
- bin-check - Thanks you for inspiration.
Contribution
Feel free to push your code if you agree with publishing under the MIT license.