itgalaxy / bin-check
Check if a binary is working by checking its exit code
Installs: 100
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 0
pkg:composer/itgalaxy/bin-check
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: 2025-10-13 13:58:54 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.