newclass / impero
The PHP command manager.
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/newclass/impero
Requires
- php: >=5.6.0
Requires (Dev)
- phpunit/phpunit: ^6.3
This package is auto-updated.
Last update: 2025-09-17 00:27:58 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