Git Product home page Git Product logo

zfsnapphpdebugbar's Introduction

ZfSnapPhpDebugBar Build Status

PHP Debug Bar module for Zend Framework 2

Created by Witold Wasiczko

PHP Debug Bar Messages

Features

  • 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!
  • easy configurable via module config,

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --dev snapshotpl/zf-snap-php-debug-bar "dev-master"

or add to your composer.json file:

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

Usage

Add module ZfSnapPhpDebugBar to ZF2 application.config.php.

return array(
    'modules' => (
        'ZfSnapPhpDebugBar',
    ),
);

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->addWriter($writer);
$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 file

zfsnapphpdebugbar's People

Contributors

snapshotpl avatar bupy7 avatar laytoneverson avatar

Stargazers

Timo Michna avatar

Watchers

Timo Michna avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.