mrjulio/rapture-command
Composer 安装命令:
composer require mrjulio/rapture-command
包简介
Rapture CLI command component
关键字:
README 文档
README
Simple PHP command class.
Requirements
- PHP v5.4
Install
composer require mrjulio/rapture-command
Quick start
namespace AppName\Domain\Command; class DayOfWeek extends Command { public static function getOptions() { return [ 'd' => ['date', self::REQUIRED, 'Date', null], ]; } public function execute() { $date = new \DateTime($this->getOption('date')); $this->output($date->format('W')); } }
# run inside \AppName\Domain\Command
php console.php --cmd=DayOfWeek --env=dev --date=2017-01-01
About
Author
Iulian N. rapture@iuliann.ro
Testing
cd ./test && phpunit
License
Rapture PHP command is licensed under the MIT License - see the LICENSE file for details.
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-18