fastd/console

FastD 控制台组件

v2.0.2 2016-07-16 03:41 UTC

README

Building Latest Stable Version Total Downloads Latest Unstable Version License

PHP CLI 应用程序。

需求

  • PHP >= 5.6

安装

composer require "fastd/console:3.0.x-dev" -vvv

使用方法

use FastD\Console\Console;

include_once __DIR__ . '/tests/OutputHelloCommand.php';
include_once __DIR__ . '/tests/OutputWorldCommand.php';

$console = new Console();

$console->addCommand(new OutputWorldCommand());
$console->addCommand(new OutputHelloCommand());

$console->run();

phpunit

许可 MIT