There is no license information available for the latest version (0.10.0) of this package.

PHP Debug Bar module for Zend Framework 2

Installs: 1 814

Dependents: 0

Stars: 17

Watchers: 2

Forks: 2

Open Issues: 2

0.10.0 2015-09-08 19:59 UTC


PHP Debug Bar module for Zend Framework 2

Created by Witold Wasiczko

PHP Debug Bar Messages

How to install?

By composer.json

    "require": {
        "snapshotpl/zf-snap-php-debug-bar": "dev-master"

run composer update and add module ZfSnapPhpDebugBar to ZF2 application.config.php. That's all!


  • All PHP Debug Bar features + additional info about ZF2 application:
    • Log and debug directly to Debug Bar,
    • Check request variables ($_POST, $_GET, $_SERVER, $_COOKIE),
    • Use timeline to see time between common events,
    • Catch exceptions,
    • Preview config and application config,
    • Profile SQL queries,
    • Details about current route,
    • Memory usage,
    • Total request duration,
    • Custom debug bar view,
    • and more...!
  • Ready to use - just install via composer.json!
  • easy configurable via module config,

How to use Message tab?

By function:

debugbar_log('ZfSnapPhpDebugBar is awesome!');

By static method:

\ZfSnapPhpDebugBar\Module::log('ZfSnapPhpDebugBar is awesome!');

By Zend\Log:

$writer = $sm->get('ZfSnapPhpDebugBar\Log\Writer\PhpDebugBar');
$log = new \Zend\Log\Logger();
$log->info('ZfSnapPhpDebugBar is awesome!');

Directly by DebugBar object from ServiceManager:

$debugbar = $sm->get('debugbar');
$debugbar['messages']->addMessage('ZfSnapPhpDebugBar is awesome!'));

How to config?

Look at config/zfsnapphpdebugbar.config.php

PHP Debug Bar Timeline

PHP Debug Bar Request

PHP Debug Bar Config

PHP Debug Bar Route