webtoucher/yii2-commands
最新稳定版本:v1.0.3
Composer 安装命令:
composer require webtoucher/yii2-commands
包简介
Yii 2 extension wrapper for console controllers.
README 文档
README
Yii 2 extension wrapper for console controllers.
Installation
The preferred way to install this extension is through composer.
Either run
$ php composer.phar require webtoucher/yii2-commands "*"
or add
"webtoucher/yii2-commands": "*"
to the require section of your composer.json file.
Usage
Just use for your console controllers class webtoucher\commands\Controller instead of yii\console\Controller like this:
<?php namespace app\components; use webtoucher\commands\Controller; class CommandController extends Controller { public function actionRun() { ... } }
You can run your command with flag --y to answer 'yes' for every confirms:
$ php yii command --y
统计信息
- 总下载量: 185.77k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 6
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-07-24