g4 / commando
PHP command-line interface
Installs: 33 049
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 9
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.3
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2024-11-09 16:02:33 UTC
README
commando - php library
Install
composer require g4code/commando
Usage
<?php use Commando\Cli; $cli = new Cli(); $cli->version('x.x.x'); $cli->option()->short("p") ->long("param") ->desc('param name description'); echo $cli->value('param'); // outputs param option value
Development
Install dependencies
$ make install
Run tests
$ make test
License
(The MIT License) see LICENSE file for details...