19/11
2013
dev-master
9999999-devPhp-console extension for Yii 2.
GPL2
The Requires
by Jakob Rosenberg
Php-console extension for Yii 2.
Php Console extension for Yii2 https://github.com/barbushin/php-console, (*1)
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' ], ... ]
With globals, (*4)
PC::debug($var, 'tag'); PC::tag($var);
Without globals, (*5)
PhpConsole\Handler::getInstance()->debug($var, 'some.tags');
Php-console extension for Yii 2.
GPL2