2017 © Pedro Peláez
 

library php-console-yii2

PhpConsole wrapper for Yii2

image

asolomatin/php-console-yii2

PhpConsole wrapper for Yii2

  • Monday, August 21, 2017
  • by Aleksej Solomatin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

php-console-yii2

PhpConsole wrapper for Yii 2, (*1)

Based on https://github.com/barbushin/php-console-yii, (*2)

Configuration Example

Into common/main.php 'components' => [ 'phpconsole' => [ 'class' => '\nilsburg\PhpConsole\PhpConsole', 'isEvalEnabled' => true, 'password' => 'some_password' ], ], (*3)

Usage (Eval)

public function beforeAction($action)
{
    if ($action->id === 'index') {
        $this->enableCsrfValidation = false;
    }
    return parent::beforeAction($action);
}

public function actionIndex()
{
    $console = \Yii::$app->phpconsole;
    unset($console);
    return $this->render('index');
}

The Versions

21/08 2017

dev-originalName

dev-originalName

PhpConsole wrapper for Yii2

  Sources   Download

The Requires

 

by Avatar nilsburg

21/08 2017

dev-master

9999999-dev

PhpConsole wrapper for Yii2

  Sources   Download

The Requires

 

by Avatar nilsburg