czproject / runner
Process runner.
Fund package maintenance!
Other
Installs: 3 022
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.0
- czproject/path-helper: ^4.0
README
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/