2017 © Pedro Peláez
 

library zf-snap-php-debug-bar

PHP Debug Bar module for Zend Framework 2

image

snapshotpl/zf-snap-php-debug-bar

PHP Debug Bar module for Zend Framework 2

  • Wednesday, December 20, 2017
  • by snapshotpl
  • Repository
  • 3 Watchers
  • 31 Stars
  • 6,710 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 1 Open issues
  • 12 Versions
  • 17 % Grown

The README.md

ZfSnapPhpDebugBar Build Status

PHP Debug Bar module for Zend Framework 2 & 3, (*1)

Created by Witold Wasiczko, (*2)

PHP Debug Bar Messages, (*3)

Features

  • All PHP Debug Bar features + additional info about Zend Framework 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!
  • easy configurable via module config,

Installation

The preferred way to install this extension is through composer., (*4)

Either run, (*5)

php composer require --dev snapshotpl/zf-snap-php-debug-bar

Usage

Add module ZfSnapPhpDebugBar to application.config.php., (*6)

return [
    'modules' => [
        'ZfSnapPhpDebugBar',
    ],
];

How to use Message tab

By function:, (*7)

debugbar_log('ZfSnapPhpDebugBar is awesome!');

By static method:, (*8)

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

By Zend\Log:, (*9)

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

Directly by DebugBar object from ServiceManager:, (*10)

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

How to config

Look at config/zfsnapphpdebugbar.config.php file, (*11)

The Versions

08/09 2015

0.10.0

0.10.0.0

PHP Debug Bar module for Zend Framework 2

  Sources   Download

The Requires

 

The Development Requires

debug logger log zf2 zend framework exception zend framework 2 debugbar

22/04 2015

0.9.2

0.9.2.0

PHP Debug Bar module for Zend Framework 2

  Sources   Download

The Requires

 

The Development Requires

debug logger log zf2 zend framework exception zend framework 2 debugbar

15/03 2014

0.9.1

0.9.1.0

PHP Debug Bar module for Zend Framework 2

  Sources   Download

The Requires

 

debug logger log zf2 zend framework exception zend framework 2 debugbar

13/03 2014

0.0.9

0.0.9.0

PHP Debug Bar module for Zend Framework 2

  Sources   Download

The Requires

 

debug logger log zf2 zend framework exception zend framework 2 debugbar