2017 © Pedro Peláez
 

library php-console-yii

Yii extension integrates Google Chrome extension PHP Console.

image

todoconk/php-console-yii

Yii extension integrates Google Chrome extension PHP Console.

  • Monday, March 28, 2016
  • by todoconk
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PHP Console extension for Yii Framework

This extension integrates YII with Google Chrome extension PHP Console, (*1)

Requirements

  • PHP 5.3 (or later)
  • Yii Framework v1.* project
  • Google Chrome extension PHP Console

Installation

  1. Copy "/src/extension/phpconsole" to your extensions directory (i.e. /protected/extensions).
  2. Copy "/src/vendors/PhpConsole" to your vendors directory (i.e. /protected/vendors).
  3. Modify your config file (i.e. /protected/config/main.php)

Initialization & configuration

'preload' => array('log'),

'components' => array(

    'log' => array(
        'class' => 'CLogRouter',
        'routes' => array(
            'class' => 'ext.phpconsole.PhpConsoleLogRoute',
            /* Default options:
            'isEnabled' => true,
            'handleErrors' => true,
            'handleExceptions' => true,
            'sourcesBasePath' => $_SERVER['DOCUMENT_ROOT'],
            'phpConsolePathAlias' => 'application.vendors.PhpConsole.src.PhpConsole',
            'registerHelper' => true,
            'serverEncoding' => null,
            'headersLimit' => null,
            'password' => null,
            'enableSslOnlyMode' => false,
            'ipMasks' => array(),
            'dumperLevelLimit' => 5,
            'dumperItemsCountLimit' => 100,
            'dumperItemSizeLimit' => 5000,
            'dumperDumpSizeLimit' => 500000,
            'dumperDetectCallbacks' => true,
            'detectDumpTraceAndSource' => true,
            'isEvalEnabled' => false,
            */
        )
    )
)

Usage

Try this code in some controller:, (*2)

// log using Yii methods
Yii::log('There is some debug message');

// log using PHP Console debug method
PC::debug('Short way to debug directly in PHP Console', 'some,debug,tags');
echo $undefinedVar;

Resources

The Versions

28/03 2016

dev-master

9999999-dev

Yii extension integrates Google Chrome extension PHP Console.

  Sources   Download

28/03 2016

v1.0.0

1.0.0.0

Yii extension integrates Google Chrome extension PHP Console.

  Sources   Download