fastd / console
FastD 控制台组件
v2.0.2
2016-07-16 03:41 UTC
Requires
- php: >=7.0
- fastd/debug: ~2.0@beta
- symfony/finder: ~3.0
Requires (Dev)
- phpunit/phpunit: 5.0
This package is auto-updated.
Last update: 2024-09-13 13:39:23 UTC
README
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