Download the PHP package asilgag/cli-wrapper without Composer
On this page you can find all versions of the php package asilgag/cli-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download asilgag/cli-wrapper
More information about asilgag/cli-wrapper
Files in asilgag/cli-wrapper
Download asilgag/cli-wrapper
More information about asilgag/cli-wrapper
Files in asilgag/cli-wrapper
Vendor asilgag
Package cli-wrapper
Short Description A simple PHP wrapper over CLI commands
License MIT
Homepage https://github.com/asilgag/cli-wrapper
Package cli-wrapper
Short Description A simple PHP wrapper over CLI commands
License MIT
Homepage https://github.com/asilgag/cli-wrapper
Please rate this library. Is it a good library?
Informations about the package cli-wrapper
cli-wrapper
A simple PHP wrapper over CLI commands.
Installation
composer require asilgag/cli-wrapper
Usage
use Asilgag\CliWrapper\CliWrapper;
use Asilgag\CliWrapper\CliCommand;
// Create a new CLI Wrapper
$cli = new CliWrapper();
// Set environment variables if needed.
$cli->setEnvironment('FOO', 'baz');
// Set global options for specific commands.
// In this example, all "rsync" commands will be suffixed with "--quiet".
$cli->getGlobalOptions('rsync')->add('--quiet');
// Create new command.
$command = new CliCommand('rsync', ['-avzh', '/source/path', '/target/path/']);
// Execute command. It will throw a RuntimeException if it exits with a non-zero code.
try {
$cli->exec($command);
}
catch (RuntimeException $e) {
// Do some logging
}
All versions of cli-wrapper with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1.0
The package asilgag/cli-wrapper contains the following files
Loading the files please wait ....