A simple package for simplify cli development

0.3-alpha 2022-07-23 09:08 UTC

This package is auto-updated.

Last update: 2024-11-29 06:53:02 UTC


README

This library is to simplify cli development in php.

Usage

use UnknownRori\Console\Console;

$app = new Console();

// Add command
$app->addCommand('sum', "It sum a two number", function (float $a, float $b) {
    return $a + $b;
});

// Serving the cli
echo $app->serve($argv);

Getting Started

Installing via composer

> composer require unknownrori/cli

Requirement

php 7.4