2017 © Pedro Peláez
 

library debugbar

Debug bar in the browser for php application

image

maximebf/debugbar

Debug bar in the browser for php application

  • Saturday, May 19, 2018
  • by maximebf
  • Repository
  • 80 Watchers
  • 2474 Stars
  • 10,073,468 Installations
  • PHP
  • 132 Dependents
  • 6 Suggesters
  • 269 Forks
  • 84 Open issues
  • 56 Versions
  • 8 % Grown

The README.md

PHP Debug Bar

Latest Stable Version Total Downloads License Tests, (*1)

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

Note: Debug Bar is for development use only. Never install this on websites that are publicly accessible., (*3)

Screenshot, (*4)

Features:, (*5)

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

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

Integrations with other frameworks:, (*8)

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

Installation

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

composer require maximebf/debugbar --dev

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)

Demo

To run the demo, clone this repository and start the Built-In PHP webserver from the root:, (*15)

php -S localhost:8000

Then visit http://localhost:8000/demo/, (*16)

Testing

To test, run php vendor/bin/phpunit. To debug Browser tests, you can run PANTHER_NO_HEADLESS=1 vendor/bin/phpunit --debug. Run vendor/bin/bdi detect drivers to download the latest drivers., (*17)

The Versions

19/05 2018

dev-master

9999999-dev https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug debugbar

15/12 2017

v1.15.0

1.15.0.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug debugbar

13/09 2017

v1.14.1

1.14.1.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug debugbar

17/08 2017

v1.14.0

1.14.0.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug debugbar

15/02 2017

dev-feat-servertiming

dev-feat-servertiming https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug debugbar

05/01 2017

1.13.1

1.13.1.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug debugbar

17/12 2016

dev-fix-unsafe-headers

dev-fix-unsafe-headers https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug debugbar

15/09 2016

v1.13.0

1.13.0.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug debugbar

15/05 2016

v1.12.0

1.12.0.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug debugbar

16/04 2016

dev-reset

dev-reset https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug debugbar

22/01 2016

v1.11.1

1.11.1.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug debugbar

10/12 2015

dev-feat-dynamic-padding

dev-feat-dynamic-padding https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug debugbar

10/12 2015

v1.11.0

1.11.0.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug debugbar

19/10 2015

v1.10.5

1.10.5.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug

05/02 2015

v1.10.4

1.10.4.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug

30/01 2015

v1.10.3

1.10.3.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug

22/01 2015

dev-dev_rebased

dev-dev_rebased https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug

05/01 2015

dev-util

dev-util https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug

23/12 2014

dev-timedate-memory

dev-timedate-memory https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug

17/12 2014

v1.10.2

1.10.2.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug

23/11 2014

1.10.1

1.10.1.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug

31/10 2014

1.10.0

1.10.0.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug

20/08 2014

1.9.15

1.9.15.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

debug

25/04 2014

1.9.14

1.9.14.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

05/04 2014

1.9.13

1.9.13.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

25/03 2014

1.9.12

1.9.12.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

24/03 2014

1.9.11

1.9.11.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

24/03 2014

1.9.10

1.9.10.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

23/03 2014

1.9.9

1.9.9.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

23/03 2014

dev-dev

dev-dev https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

23/03 2014

dev-serverhandler

dev-serverhandler https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

23/03 2014

1.9.8

1.9.8.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

23/03 2014

1.9.7

1.9.7.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

04/03 2014

1.9.6

1.9.6.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

04/03 2014

1.9.5

1.9.5.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

14/02 2014

1.9.4

1.9.4.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

09/02 2014

1.9.3

1.9.3.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

29/01 2014

1.9.2

1.9.2.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

14/01 2014

1.9.1

1.9.1.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

07/01 2014

1.9

1.9.0.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

19/12 2013

1.8

1.8.0.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

24/10 2013

1.7.1

1.7.1.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

06/10 2013

1.7

1.7.0.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

20/09 2013

1.6.1

1.6.1.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

15/09 2013

1.6

1.6.0.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

17/08 2013

1.5.1

1.5.1.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

14/08 2013

1.5

1.5.0.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

13/08 2013

1.4

1.4.0.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

13/08 2013

1.3

1.3.0.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

12/08 2013

1.2

1.2.0.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

08/08 2013

1.1

1.1.0.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

04/08 2013

1.0.4

1.0.4.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

24/06 2013

1.0.3

1.0.3.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

20/06 2013

1.0.2

1.0.2.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

20/06 2013

1.0.1

1.0.1.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug

19/06 2013

1.0

1.0.0.0 https://github.com/maximebf/php-debugbar

Debug bar in the browser for php application

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.3.0

debug