PHP Classes

File: readme.MD

Recommend this page to a friend!
  Classes of Mateo   PHP CLI   readme.MD   Download  
File: readme.MD
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP CLI
Process console parameters with callback functions
Author: By
Last change:
Date: 1 year ago
Size: 285 bytes
 

Contents

Class file image Download

Cli apps

Installation

composer require mateodioev/php-easy-cli

Usage

$app = new \Mateodioev\PhpEasyCli\App();

$app->register('help', function() use ($app) {
    $app->getPrinter()->display('Default command is help!!');
});

$app->run($argv, 'help');