czproject / runner
进程运行器。
v1.3.1
2022-05-02 14:11 UTC
Requires
- php: >=5.3.0
- czproject/path-helper: ^4.0
README
安装
composer require czproject/runner
CzProject\Runner
需要 PHP 5.6.0 或更高版本。
用法
use CzProject\Runner\Runner; $runner = new Runner('/path/to/working/directory'); $result = $runner->run('ls'); $result = $runner->run(array('git', 'remote', 'add', $remoteName, $remoteUrl)); $result = $runner->run(array( 'git', 'clone', $cloneUrl, '--bare' => TRUE, '--branch' => 'master', )); $result->isOk(); $result->getCommand(); $result->getCode(); $result->getOutput();
许可证: 新BSD许可证
作者: Jan Pecha, https://www.janpecha.cz/