A PHP Developer's Blog - Joakim Nygård

Recent Posts

Popular Posts


Version 1.5, released 2009-05-21

ZFDebug is a plugin for the Zend Framework for PHP5. It provides useful debug information displayed in a small bar at the bottom of every page. Prior to version 1.5 it was called Scienta ZF Debug Bar.

Time spent, memory usage and number of database queries are presented at a glance. Additionally, included files, a listing of available view variables and the complete SQL command of all queries are shown in separate panels (shown configured with 2 database adapters):

Screenshot of Scienta ZF Debug Bar

The available plugins at this point are:

The icons used are from the excellent Silk Set by Mark James. Suggestions or bugfixes will be gratefully accepted.

Speak up in the latest blog post with comments or read the introducing blog post.

Visit the ZFDebug homepage to download and read more.

Installation & Usage

To install, place the folder 'ZFDebug' in your library path, next to the Zend folder. Then add the following method to your bootstrap class (in ZF1.8+):

protected function _initZFDebug()
    $autoloader = Zend_Loader_Autoloader::getInstance();

    $options = array(
        'plugins' => array('Variables', 
                           'Database' => array('adapter' => $db), 
                           'File' => array('basePath' => '/path/to/project'),
                           'Cache' => array('backend' => $cache->getBackend()), 
    $debug = new ZFDebug_Controller_Plugin_Debug($options);

    $frontController = $this->getResource('frontController');

See the ZFDebug homepage for further documentation.

Version History

v1.5 - 2009-05-21

v1.4 - 2009-04-02

v1.3 - 2009-02-25

v1.2 - 2009-02-18

v1.1 - 2009-02-10

v1.0 - 2009-01-07