Recommend this page to a friend! |
Download |
Info | Example | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 48 | All time: 10,742 This week: 57 |
Version | License | PHP version | Categories | |||
php-cli 1.0 | MIT/X Consortium ... | 5 | PHP 5, Console |
Description | Author | |
This package can process console parameters with callback functions. |
<?php |
composer require mateodioev/php-easy-cli
$app = new \Mateodioev\PhpEasyCli\App();
$app->register('help', function() use ($app) {
$app->getPrinter()->display('Default command is help!!');
});
$app->run($argv, 'help');
Files (7) |
File | Role | Description | ||
---|---|---|---|---|
src (3 files) | ||||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
index.php | Example | Example script | ||
readme.MD | Doc. | Documentation |
Files (7) | / | src |
File | Role | Description |
---|---|---|
App.php | Class | Class source |
Color.php | Class | Class source |
Printer.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.