pablosanches/goliath
Composer 安装命令:
composer require pablosanches/goliath
包简介
A simple framework to facilitate the development of CLI applications based on PHP command.
README 文档
README
A simple framework to facilitate the development of CLI applications based on PHP command.
Features
- Routing of command line arguments
- Short and long arguments
- Automagic
--helpcreation - Configuration
Requirements
PHP >=5.6
Example
use Goliath\Cli; $app = new Goliath\Cli(); $app = new \Goliath\Cli(array( 'debug' => true, 'log.destination' => \Goliath\Logger::LOG_STDERR, 'log.dir' => __DIR__ )); $app->command('hello-world:', function($name) { echo "Hello $name\n"; }) ->setHelp('Hello world example');
Installation
You only need to include the depency in the composer.
"require": { "pablosanches/goliath": "1.0.*" }
And run the composer
$ composer install
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-08-09