czproject/runner

进程运行器。

资助包维护!
其他

v1.3.1 2022-05-02 14:11 UTC

This package is auto-updated.

Last update: 2024-09-17 15:08:52 UTC


README

Build Status Downloads this Month Latest Stable Version License

Donate

安装

下载最新包 或使用 Composer

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/