g4/commando

PHP command-line interface

0.4.0 2015-03-02 12:33 UTC

This package is not auto-updated.

Last update: 2024-12-21 16:41:21 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...