newclass / impero
The PHP command manager.
v1.0.1
2017-10-27 07:56 UTC
Requires
- php: >=5.6.0
Requires (Dev)
- phpunit/phpunit: ^6.3
This package is auto-updated.
Last update: 2025-02-16 23:24:53 UTC
README
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