2017 © Pedro Peláez
 

library goliath

A simple framework to facilitate the development of CLI applications based on PHP command.

image

pablosanches/goliath

A simple framework to facilitate the development of CLI applications based on PHP command.

  • Friday, August 11, 2017
  • by pablosanches
  • Repository
  • 1 Watchers
  • 1 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

, (*1)

Codacy Badge Build Status, (*2)

A simple framework to facilitate the development of CLI applications based on PHP command., (*3)

Features

  • Routing of command line arguments
  • Short and long arguments
  • Automagic --help creation
  • Configuration

Requirements

PHP >=5.6, (*4)

Example

use Goliath\Cli;

$app = new Goliath\Cli();

$app = new \Goliath\Cli(array(
    'debug' => true,
    'log.destination' => \Goliath\Logger::LOG_STDERR,
    'log.dir' => __DIR__
));

$app->command('hello-world:',
    function($name) {
        echo "Hello $name\n";
    })
    ->setHelp('Hello world example');

Installation

You only need to include the depency in the composer., (*5)

"require": {
    "pablosanches/goliath": "1.0.*"
}

And run the composer, (*6)

$ composer install

The Versions

11/08 2017

dev-master

9999999-dev

A simple framework to facilitate the development of CLI applications based on PHP command.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Pablo Sanches

09/08 2017

1.0.0

1.0.0.0

A simple framework to facilitate the development of CLI applications based on PHP command.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Pablo Sanches