g4/commando

PHP command-line interface

Installs: 1 131

Dependents: 1

Stars: 5

Watchers: 4

Forks: 1

Language: PHP

0.4.0 2015-03-02 12:33 UTC

README

commando - php library

Install

composer require g4code/commando

Composer

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...