2017 © Pedro Peláez
 

yii-extension yii2-commands

Yii 2 extension wrapper for console controllers.

image

webtoucher/yii2-commands

Yii 2 extension wrapper for console controllers.

  • Thursday, July 24, 2014
  • by webtoucher
  • Repository
  • 1 Watchers
  • 0 Stars
  • 55,626 Installations
  • PHP
  • 6 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 11 % Grown

The README.md

yii2-commands

Yii 2 extension wrapper for console controllers., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

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

or add, (*4)

"webtoucher/yii2-commands": "*"

to the require section of your composer.json file., (*5)

Usage

Just use for your console controllers class webtoucher\commands\Controller instead of yii\console\Controller like this:, (*6)

<?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:, (*7)

$ php yii command --y

The Versions

24/07 2014

dev-master

9999999-dev https://github.com/webtoucher/yii2-commands

Yii 2 extension wrapper for console controllers.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Alexey Kuznetsov

extension command console yii

24/07 2014

v1.0.3

1.0.3.0 https://github.com/webtoucher/yii2-commands

Yii 2 extension wrapper for console controllers.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Alexey Kuznetsov

extension command console yii

24/07 2014

v1.0.2

1.0.2.0 https://github.com/webtoucher/yii2-commands

Yii 2 extension wrapper for console controllers.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Alexey Kuznetsov

extension command console yii

24/07 2014

v1.0.1

1.0.1.0 https://github.com/webtoucher/yii2-commands

Yii 2 extension wrapper for console controllers.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Alexey Kuznetsov

extension command console yii

24/07 2014

v1.0.0

1.0.0.0 https://github.com/webtoucher/yii2-commands

Yii 2 extension wrapper for console controllers.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Alexey Kuznetsov

extension command console yii