Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tacoberu/php-process
Objects help handling command lines specifying processes to execute. With fluent interfaces.
https://github.com/tacoberu/php-process
Last synced: about 2 months ago
JSON representation
Objects help handling command lines specifying processes to execute. With fluent interfaces.
- Host: GitHub
- URL: https://github.com/tacoberu/php-process
- Owner: tacoberu
- License: mit
- Created: 2013-08-29T14:37:17.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2019-07-20T20:57:32.000Z (over 5 years ago)
- Last Synced: 2024-04-21T08:03:21.253Z (8 months ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
php-process
===========Objects help handling command lines specifying processes to execute. With fluent interfaces.
## Use
$res = (new Process\Exec('ping 127.0.0.1 -c 3'))->run();
$res = (new Process\Exec('ping'))
->arg('127.0.0.1')
->arg('-c 3');
->run();
echo "{$res->code}\n{$res->content}\n";$code = (new Process\Exec('bin/readwrite.php'))
->run(function($out, $err) {
echo '> ' . $out;
return "Hi\n";
});