czproject/runner

Process runner.

Fund package maintenance!
Other

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

This package is auto-updated.

Last update: 2024-10-17 15:25:51 UTC


README

Build Status Downloads this Month Latest Stable Version License

Donate

Installation

Download a latest package or use Composer:

composer require czproject/runner

CzProject\Runner requires PHP 5.6.0 or later.

Usage

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();

License: New BSD License
Author: Jan Pecha, https://www.janpecha.cz/