yii-debug-toolbar

A configurable set of panels that display various debug information about the current request/response.

4 years after

Yii Debug Toolbar

The Yii Debug Toolbar is a configurable set of panels that display various debug information about the current request/response and when clicked, display more details about the panel's content.

It is a ported to PHP famous Django Debug Toolbar.

Currently, the following panels have been written and are working:

  • Server info
  • Request timer
  • A list of superglobals
  • Application settings
  • SQL queries including time to execute and param bindings
  • Logging output via Yii built-in logging

Installation

Extract the yii-debug-toolbar from archive under protected/extensions

Usage and Configuration

For use yii-debug-toolbar need to specify new route in log component:

<?php
//...
    'log'=>array(
        'class'=>'CLogRouter',
        'routes'=>array(
            array(
                'class'=>'ext.yii-debug-toolbar.YiiDebugToolbarRoute',
                // Access is restricted by default to the localhost
                //'ipFilters'=>array('127.0.0.1','192.168.1.*', 88.23.23.0/24),
            ),
        ),
    ),
  • Make sure your IP is listed in the ipFilters setting. If you are working locally this option not required.
  • Enable Profiling and ParamLogging for all used DB connections.
<?php
//...
    'db'=>array(
        'connectionString' => 'mysql:host=localhost;dbname=test',
        //...
        'enableProfiling'=>true,
        'enableParamLogging'=>true,
    ),

TODOs and BUGS

See: issues

Working preview

Screenshot1 Screenshot2

Related Repositories

awesome-yii

awesome-yii

A curated list of awesome Yii Framework extensions, tutorials and other nice thi ...

yii2-debug

yii2-debug

Debug panel for Yii 1.1 (ported from Yii 2) ...

yii-app

yii-app

A great way to start building your web application with the Yii PHP framework. ...

phalcon-debug-widget

phalcon-debug-widget

Frontend Debugger for phalconphp. ...

yiidebugtb

yiidebugtb

Yii Framework Debug Toolbar Extension ...


Top Contributors

malyshev rmrevin k4emic bwoester golovanov bazilio91 resurtm Ryadnov akimsko gregmolnar Naki igorsantos07 zhuravljov kpashka gureedo sbesedkov psrustik