Skip to content

Library for executing of external programs

License

Notifications You must be signed in to change notification settings

czproject/runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CzProject\Runner

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/