Download the PHP package ftven/cli-common without Composer
On this page you can find all versions of the php package ftven/cli-common. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ftven/cli-common
More information about ftven/cli-common
Files in ftven/cli-common
Download ftven/cli-common
More information about ftven/cli-common
Files in ftven/cli-common
Vendor ftven
Package cli-common
Short Description Common CLI helpers classes
License MIT
Homepage https://github.com/francetv/php-cli-common
Package cli-common
Short Description Common CLI helpers classes
License MIT
Homepage https://github.com/francetv/php-cli-common
Please rate this library. Is it a good library?
Informations about the package cli-common
PHP CLI COMMON
Usage
Add the dependency in your composer.json :
...
"require": {
...
"ftven/cli-common": "1.*"
}
Then update your dependency :
$ ./composer.phar update ftven/cli-common
Then you can use it directly in your scripts :
<?php
// ...
require_once '/path/to/vendor/autoload.php';
$cli = new Ftven\Build\Cli\Application\CliApplication('mytool', '1.0.0');
$cli->addExtension(new MyNamespace\MyExtension());
$cli->run();
CliApplication is a full Symfony Console Application, so you can use all available methods on it to add commands, etc... As a best practices, we recommand not adding directly commands on the CliApplication, rather create an extension. For further information on creating extension, read CoreExtension class, or search for php-cli-xxx-extension on our GitHub.
Enjoy !
FTVEN Build Team.
All versions of cli-common with dependencies
PHP Build Version
Package Version
Requires
ftven/common-lib Version
1.*
symfony/dependency-injection Version 2.5.*
symfony/http-foundation Version 2.5.*
symfony/config Version 2.5.*
symfony/dependency-injection Version 2.5.*
symfony/http-foundation Version 2.5.*
symfony/config Version 2.5.*
The package ftven/cli-common contains the following files
Loading the files please wait ....