tacoberu/php-process
Composer 安装命令:
composer require tacoberu/php-process
包简介
Wraper for calling process.
README 文档
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";
});
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-07-20