Need help with php-debugbar?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

maximebf
3.8K Stars 338 Forks MIT License 575 Commits 122 Opened issues

Description

Debug bar for PHP

Services available

!
?

Need anything else?

Contributors list

# 2,431
PHP
CSS
Laravel
chatbot...
132 commits
# 78,369
PHP
CSS
Shell
130 commits
# 186,188
PHP
CSS
Symfony
symfony...
19 commits
# 2,291
PHP
Laravel
Compose...
framewo...
16 commits
# 215,758
Shell
PHP
CSS
11 commits
# 76,237
PHP
Firebas...
slugify
twig-ex...
7 commits
# 29,030
PHP
slug
Laravel
CSS
7 commits
# 1,598
Symfony
grav
twig
php7
5 commits
# 69,713
PHP
express...
shell-p...
Zsh
5 commits
# 259,104
PHP
CSS
swagger
openapi...
4 commits
# 343,786
PHP
CSS
3 commits
# 95,697
PHP
Laravel
excel
GraphQL
3 commits
# 22,407
Go
Kuberne...
drone-p...
Lua
2 commits
# 215,450
PHP
Visual ...
Shell
phalcon
2 commits
# 38,641
PHP
Laravel
braintr...
Compose...
2 commits
# 128,101
SQL
php7
SQLite
microso...
2 commits
# 152,545
Sass
C
Compose...
npm
2 commits
# 8,022
apache
robust
nginx
nginx-c...
2 commits
# 181,769
PHP
Laravel
CSS
jquery-...
2 commits
# 224,086
PHP
PHPUnit
Shell
integra...
2 commits

PHP Debug Bar

Latest Stable Version Total Downloads License Tests

Displays a debug bar in the browser with information from php. No more

var_dump()
in your code!

Screenshot

Features:

  • 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:

Checkout the demo for examples and phpdebugbar.com for a live example.

Integrations with other frameworks:

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

Installation

The best way to install DebugBar is using Composer with the following command:

composer require maximebf/debugbar

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
use DebugBar\StandardDebugBar;

$debugbar = new StandardDebugBar(); $debugbarRenderer = $debugbar->getJavascriptRenderer();

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

    <?php echo $debugbarRenderer->renderHead() ?&gt;


    ...
    <?php echo $debugbarRenderer->render() ?&gt;

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
:
$debugbar["messages"]->addMessage("hello world!");

StandardDebugBar
activates the following collectors:
  • MemoryCollector
    (memory)
  • MessagesCollector
    (messages)
  • PhpInfoCollector
    (php)
  • RequestDataCollector
    (request)
  • TimeDataCollector
    (time)
  • ExceptionsCollector
    (exceptions)

Learn more about DebugBar in the docs.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.