tacoberu / php-process
Wraper for calling process.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/tacoberu/php-process
Requires
- php: >=5.3.0
Requires (Dev)
- tracy/tracy: ^2.5
This package is auto-updated.
Last update: 2025-09-21 23:16:05 UTC
README
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";
});