2017 © Pedro Peláez
 

library debugbar

Debug bar in the browser for php application

image

jetfirephp/debugbar

Debug bar in the browser for php application

  • Saturday, November 26, 2016
  • by jetfirephp
  • Repository
  • 1 Watchers
  • 1 Stars
  • 99 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHP Debug Bar

Fork : "maximebf/debugbar", (*1)

Displays a debug bar in the browser with information from php. No more var_dump() in your code!, (*2)

Screenshot, (*3)

Features:, (*4)

  • Generic debug bar
  • Easy to integrate with any project
  • Clean, fast and easy to use interface
  • Handles AJAX request
  • Includes generic data collectors and collectors for well known libraries
  • The client side bar is 100% coded in javascript
  • Easily create your own collectors and their associated view in the bar
  • Save and re-open previous requests
  • Very well documented

Includes collectors for:, (*5)

Checkout the demo for examples and phpdebugbar.com for a live example., (*6)

Integrations with other frameworks:, (*7)

(drop me a message or submit a PR to add your DebugBar related project here), (*8)

Installation

The best way to install DebugBar is using Composer with the following command:, (*9)

composer require maximebf/debugbar, (*10)

Quick start

DebugBar is very easy to use and you can add it to any of your projects in no time. The easiest way is using the render() functions, (*11)

getJavascriptRenderer();

$debugbar["messages"]->addMessage("hello world!");
?>
<html>
    <head>
        <?php echo $debugbarRenderer->renderHead() ?>
    </head>
    <body>
        ...
        <?php echo $debugbarRenderer->render() ?>
    </body>
</html>

The DebugBar uses DataCollectors to collect data from your PHP code. Some of them are automated but others are manual. Use the DebugBar like an array where keys are the collector names. In our previous example, we add a message to the MessagesCollector:, (*12)

$debugbar["messages"]->addMessage("hello world!");

StandardDebugBar activates the following collectors:, (*13)

  • MemoryCollector (memory)
  • MessagesCollector (messages)
  • PhpInfoCollector (php)
  • RequestDataCollector (request)
  • TimeDataCollector (time)
  • ExceptionsCollector (exceptions)

Learn more about DebugBar in the docs., (*14)

The Versions

26/11 2016

dev-master

9999999-dev

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sumugan Sinnarasa

debug debugbar