2017 © Pedro Peláez
 

library minimal-cli-framework

A very fast and simple CLI framework

image

diversen/minimal-cli-framework

A very fast and simple CLI framework

  • Saturday, December 31, 2016
  • by diversen
  • Repository
  • 1 Watchers
  • 4 Stars
  • 56 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 15 Versions
  • 2 % Grown

The README.md

minimal-cli-framework

A simple CLI framework with options for multiple sub-commands loaded as classes. In order to implement a command into an exisiting class you will just need to add two methods: getCommand and runCommand - and then add the object or the class to an instance of the class MinimalCli., (*1)

Install:

composer require diversen/minimal-cli-framework

Example usage

src/EchoTest.php is a command class containing a single command echo and a couple of options., (*2)

This command is added to a simple program in demos/example.php, (*3)

In order to get help on the usage of the command echo:, (*4)

php demos/example.php echo --help

Put a file in uppercase:, (*5)

php demos/example.php echo --up README.md

Or (shorthand):, (*6)

php demos/example.php echo -u README.md

Which also will output the file in uppercase, (*7)

Utils

Some common CLI Utils., (*8)

See demos/utils_test.php, (*9)

php demos/utils_test.php 

Colors are supported with https://github.com/php-parallel-lint/PHP-Console-Color, (*10)

License: MIT, (*11)

The Versions

31/12 2016

dev-master

9999999-dev

A very fast and simple CLI framework

  Sources   Download

MIT

The Requires

 

31/12 2016
30/12 2016
30/12 2016
30/12 2016
30/12 2016
30/12 2016
30/12 2016
30/12 2016
28/12 2016
19/12 2016
17/12 2016
14/12 2016
14/12 2016
12/12 2016