2017 © Pedro Peláez
 

yii2-extension yii2phpconsole

Php-console extension for Yii 2.

image

simpletree/yii2phpconsole

Php-console extension for Yii 2.

  • Tuesday, November 19, 2013
  • by jakobrosenberg
  • Repository
  • 1 Watchers
  • 1 Stars
  • 12 Installations
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

yii2phpconsole

Php Console extension for Yii2 https://github.com/barbushin/php-console, (*1)

Installation

composer.json, (*2)

{
  "require": {
      "simpletree/yii2phpconsole": "dev-master"
  }
}

config/main.php, (*3)

  'preload' => ['phpconsole'],
  ...
  'components' => [
    ...
    'phpconsole' => [
        'class' => '\Simpletree\Phpconsole\Phpconsole',
        'registerGlobal' => true,   //optional, defaults to true
        'password' => '1234'        //optional, defaults to '1234'
    ],
    ...
  ]

Usage

With globals, (*4)

PC::debug($var, 'tag');
PC::tag($var);

Without globals, (*5)

PhpConsole\Handler::getInstance()->debug($var, 'some.tags');

The Versions

19/11 2013

dev-master

9999999-dev

Php-console extension for Yii 2.

  Sources   Download

GPL2

The Requires

 

by Jakob Rosenberg