Skip to content
Yii Framework Debug Toolbar Extension
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.


Yii Debug Toolbar Yii Framework Extension

This extension is very useful in the development stage of project. It helps you to get info about PHP environment, application, queries logs, benchmarking with a simple little toolbar at the top of the page.

It is a recreated Symfony's developer toolbar. First idea and very first implementation was my, but this version mostly implemented by Eduard Kuleshov.



  • Yii 1.0 or above (it's not tested with Yii 2.x compatibility, check it by yourself, please)


  • Extract the release file under protected/extensions


main.php configuration file update:

// ...
// autoloading model and component classes
  'application.extensions.yiidebugtb.*', // our extension
// ...
        'levels'=>'error, warning, trace',
      // toolbar configuration (see available options below)
        'config'=>'alignLeft, opaque, runInDebug, fixedPos, collapsed, yamlStyle, dbProfiling',
        'levels'=>'error, warning, trace, profile, info',
// ...

###Options reference

  • 'alignLeft' - debug toolbar will be aligned to the top left corner of browser window;
  • 'opaque' - makes the debug toolbar almost invisible when it’s minimized;
  • 'runInDebug' - show the debug toolbar only if Yii application running in DEBUG MODE (see index.php for details);
  • 'fixedPos' - makes the debug toolbar sticky with browser window, not document!;
  • 'collapsed' - show the debug toolbar minimized by default;
  • 'yamlStyle' - show configuration report in Yaml or PHP-array style.
  • 'dbProfiling' - enable profiling of DB queries and param logging. (see CDbConnection::$enableProfiling and CDbConnection::$enableParamLogging)

Also there is an additional security feature you may need - 'allowedIPs' option. This option holds the array of IP addresses of all machines you need to use in development cycle. So if you forget to remove YII_DEBUG from bootstrap file for the production stage, your client don't see the toolbar anyway.

You can’t perform that action at this time.