newclass/impero

The PHP command manager.

v1.0.1 2017-10-27 07:56 UTC

This package is auto-updated.

Last update: 2024-09-16 22:34:40 UTC


README

license PHP 5.6+

What is Impero?

Impero is command line manager.

Installation

The best way to install is to use the composer by command:

composer require newclass/impero
composer install

Use example

use Impero\CommandExecutor;

$executor = new CommandExecutor();
$executor->register(new MyCommand()); //class implemented Impero\CommandInterface
$executor->register(new MySecondCommand());  //class implemented Impero\CommandInterface
$executor->execute($argv);

Run test

php ./vendor/bin/phpunit