PHPackages                             webtoucher/yii2-commands - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. webtoucher/yii2-commands

ActiveYii-extension[CLI &amp; Console](/categories/cli)

webtoucher/yii2-commands
========================

Yii 2 extension wrapper for console controllers.

v1.0.3(11y ago)1187.3k↓27.8%5BSD-3-ClausePHPPHP &gt;=5.3.0

Since Jul 24Pushed 11y ago1 watchersCompare

[ Source](https://github.com/webtoucher/yii2-commands)[ Packagist](https://packagist.org/packages/webtoucher/yii2-commands)[ Docs](https://github.com/webtoucher/yii2-commands)[ RSS](/packages/webtoucher-yii2-commands/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (5)

yii2-commands
=============

[](#yii2-commands)

Yii 2 extension wrapper for console controllers.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
$ php composer.phar require webtoucher/yii2-commands "*"

```

or add

```
"webtoucher/yii2-commands": "*"

```

to the `require` section of your `composer.json` file.

Usage
-----

[](#usage)

Just use for your console controllers class `webtoucher\commands\Controller` instead of `yii\console\Controller` like this:

```
