2017 © Pedro Peláez
 

library zf-php-debug-bar

PHP Debug Bar module for Zend Framework 2/3

image

bupy7/zf-php-debug-bar

PHP Debug Bar module for Zend Framework 2/3

  • Saturday, June 16, 2018
  • by bupy7
  • Repository
  • 1 Watchers
  • 0 Stars
  • 74 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 9 Forks
  • 0 Open issues
  • 14 Versions
  • 9 % Grown

The README.md

zf-php-debug-bar

Latest Stable Version Total Downloads License Coverage Status Build Status, (*1)

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

Created by Witold Wasiczko and another developers., (*3)

PHP Debug Bar Messages, (*4)

This package is fork of snapshotpl/ZfSnapPhpDebugBar., (*5)

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., (*6)

Either run, (*7)

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

Usage

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

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

How to use Message tab

By function:, (*9)

debugbar_log('ZfSnapPhpDebugBar is awesome!');

By static method:, (*10)

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

By Zend\Log:, (*11)

$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:, (*12)

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

How to config

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

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