PHPackages                             php-debugbar/php-debugbar - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. php-debugbar/php-debugbar

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

php-debugbar/php-debugbar
=========================

Debug bar in the browser for php application

v3.5.1(2mo ago)4.4k21.3M—2.1%423[3 PRs](https://github.com/php-debugbar/php-debugbar/pulls)20MITPHPPHP ^8.2CI passing

Since Jun 19Pushed 2w ago71 watchersCompare

[ Source](https://github.com/php-debugbar/php-debugbar)[ Packagist](https://packagist.org/packages/php-debugbar/php-debugbar)[ Docs](https://github.com/php-debugbar/php-debugbar)[ Fund](https://fruitcake.nl)[ GitHub Sponsors](https://github.com/barryvdh)[ RSS](/packages/php-debugbar-php-debugbar/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (44)Versions (355)Used By (20)

PHP Debug Bar
=============

[](#php-debug-bar)

[![Latest Stable Version](https://camo.githubusercontent.com/f00f8d3015815a26d98b90ae837850b161e913e90e36d81b02c855c66b254d4b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068702d64656275676261722f7068702d64656275676261723f6c6162656c3d537461626c65)](https://packagist.org/packages/php-debugbar/php-debugbar) [![Total Downloads](https://camo.githubusercontent.com/10be68859544b8778ac2ce3c4fda3d3ccdec777e33caa142a8336565f1320c8a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6178696d6562662f64656275676261723f6c6162656c3d446f776e6c6f616473)](https://packagist.org/packages/php-debugbar/php-debugbar) [![License](https://camo.githubusercontent.com/1af8d52dbe340892b324d428f1455b29c180c5a22195466279ccafc8dd981dcc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e63652d4d49542d346439323833)](https://packagist.org/packages/php-debugbar/php-debugbar) [![Tests](https://github.com/php-debugbar/php-debugbar/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/php-debugbar/php-debugbar/actions/workflows/run-tests.yml)

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

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

> Debugbar has had significant updates in 3.x (January 2026). See the [Release Notes](https://php-debugbar.com/docs/release-notes/) for more information and breaking changes.

[![Screenshot](https://camo.githubusercontent.com/049a286b65c6524190773c61f8cd710c05aaa7d3b126a70c49eaf7ed3c4fdcff/68747470733a2f2f7261772e6769746875622e636f6d2f7068702d64656275676261722f7068702d64656275676261722f6d61737465722f646f63732f73637265656e73686f742e706e67)](https://camo.githubusercontent.com/049a286b65c6524190773c61f8cd710c05aaa7d3b126a70c49eaf7ed3c4fdcff/68747470733a2f2f7261772e6769746875622e636f6d2f7068702d64656275676261722f7068702d64656275676261722f6d61737465722f646f63732f73637265656e73686f742e706e67)

**Features:**

- Generic Debug Bar for PHP projects
- 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 plain javascript
- Easily create your own collectors and their associated view in the bar
- Save and re-open previous requests
- [Very well documented](http://php-debugbar.com/docs/)

Includes collectors for:

- Messages
- Config
- Time
- Memory
- Exceptions
- PHP Info
- Request Data
- Templates
- Object Count
- [PDO](http://php.net/manual/en/book.pdo.php)
- [Monolog](https://github.com/Seldaek/monolog)
- [Symfony Mailer](https://symfony.com/doc/current/mailer.html)
- [Symfony HttpFoundation](https://symfony.com/doc/current/components/http_foundation.html)

Checkout the [demo](https://github.com/php-debugbar/php-debugbar/tree/master/demo) for examples and [php-debugbar.com](http://php-debugbar.com) for a live example.

Additional collectors are available here:

- [Twig](https://github.com/php-debugbar/twig-bridge)
- [Doctrine](https://github.com/php-debugbar/doctrine-bridge)
- [Monolog](https://github.com/php-debugbar/monolog-bridge)
- [Symfony](https://github.com/php-debugbar/symfony-bridge)

Integrations with other frameworks:

- [Laravel](https://github.com/barryvdh/laravel-debugbar)
- [Zend Framework 2](https://github.com/snapshotpl/ZfSnapPhpDebugBar)
- [Phalcon](https://github.com/snowair/phalcon-debugbar)
- [SilverStripe](https://github.com/lekoala/silverstripe-debugbar)
- [Grav CMS](https://getgrav.org)
- [TYPO3](https://github.com/Konafets/typo3_debugbar)
- [Joomla](https://github.com/joomla/joomla-cms/blob/4.0-dev/plugins/system/debug/debug.php)
- [Drupal](https://www.drupal.org/project/debugbar)
- [October CMS](https://github.com/rainlab/debugbar-plugin)
- [Winter CMS](https://packagist.org/packages/winter/wn-debugbar-plugin)
- [ZubZet Framework (From v1.2.0+)](https://zubzet.com/)
- Framework-agnostic middleware and PSR-7 with [php-middleware/phpdebugbar](https://github.com/php-middleware/phpdebugbar)
- [Dotkernel Frontend Application](https://github.com/dotkernel/dot-debugbar)

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

Installation
------------

[](#installation)

The best way to install DebugBar is using [Composer](http://getcomposer.org)with the following command:

```
composer require --dev php-debugbar/php-debugbar
```

Quick start
-----------

[](#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

```

        ...

```

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](http://php-debugbar.com/docs/).

Demo
----

[](#demo)

To run the demo, clone this repository and start the Built-In PHP webserver from the demo folder:

```
composer run demo

```

Then visit

Testing
-------

[](#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.

Contributing
------------

[](#contributing)

When contributing to the JavaScript codebase:

1. Run `npm run lint` and `npm run build` before committing
2. Fix any errors (warnings are acceptable but should be minimized)
3. Use `npm run lint:fix` for automatic fixes where possible
4. Follow the ES6+ patterns established in the codebase

When contributing to the PHP codebase:

1. Run `composer check-style` and `composer analyse` before committing.
2. Make sure the tests pass (see above)
3. Verify that the demo works correctly (`php -S localhost:8000 demo/`)

###  Health Score

82

—

ExcellentBetter than 100% of packages

Maintenance91

Actively maintained with recent releases

Popularity79

Solid adoption and visibility

Community50

Growing community involvement

Maturity95

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 51.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~30 days

Recently: every ~6 days

Total

155

Last Release

74d ago

Major Versions

v1.23.5 → v2.0.0-beta12025-01-26

v1.23.6 → v2.1.22025-02-17

1.x-dev → v2.2.02025-05-08

2.x-dev → 3.x-dev2025-12-25

PHP version history (8 changes)1.0PHP &gt;=5.3.0

v1.15.1PHP &gt;=5.6

v1.16.0PHP ^7.1

v1.16.4PHP ^7.1|^8

v1.22.0PHP ^7.2|^8

v2.0.0-beta1PHP ^8

v2.2.5PHP ^8.1

3.x-devPHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/dad47b02be23edb7094a151b4b1ce7e9cb56b75cd87cd3341d140e1e1e9cd0e4?d=identicon)[barryvdh](/maintainers/barryvdh)

---

Top Contributors

[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (510 commits)")[![maximebf](https://avatars.githubusercontent.com/u/305740?v=4)](https://github.com/maximebf "maximebf (216 commits)")[![erikn69](https://avatars.githubusercontent.com/u/4933954?v=4)](https://github.com/erikn69 "erikn69 (113 commits)")[![james-johnston-thumbtack](https://avatars.githubusercontent.com/u/22308682?v=4)](https://github.com/james-johnston-thumbtack "james-johnston-thumbtack (19 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (16 commits)")[![parallels999](https://avatars.githubusercontent.com/u/109294935?v=4)](https://github.com/parallels999 "parallels999 (12 commits)")[![GuimDev](https://avatars.githubusercontent.com/u/16418215?v=4)](https://github.com/GuimDev "GuimDev (11 commits)")[![angeljqv](https://avatars.githubusercontent.com/u/79208641?v=4)](https://github.com/angeljqv "angeljqv (8 commits)")[![snapshotpl](https://avatars.githubusercontent.com/u/312655?v=4)](https://github.com/snapshotpl "snapshotpl (7 commits)")[![cesarreyes3](https://avatars.githubusercontent.com/u/109559100?v=4)](https://github.com/cesarreyes3 "cesarreyes3 (7 commits)")[![Anahkiasen](https://avatars.githubusercontent.com/u/1321596?v=4)](https://github.com/Anahkiasen "Anahkiasen (7 commits)")[![rhukster](https://avatars.githubusercontent.com/u/1084697?v=4)](https://github.com/rhukster "rhukster (5 commits)")[![jfexyz](https://avatars.githubusercontent.com/u/66879?v=4)](https://github.com/jfexyz "jfexyz (5 commits)")[![mpoiriert](https://avatars.githubusercontent.com/u/4175616?v=4)](https://github.com/mpoiriert "mpoiriert (4 commits)")[![stevelacey](https://avatars.githubusercontent.com/u/289531?v=4)](https://github.com/stevelacey "stevelacey (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![Yannik](https://avatars.githubusercontent.com/u/801996?v=4)](https://github.com/Yannik "Yannik (3 commits)")[![nckrtl](https://avatars.githubusercontent.com/u/18613261?v=4)](https://github.com/nckrtl "nckrtl (3 commits)")[![Rudloff](https://avatars.githubusercontent.com/u/840125?v=4)](https://github.com/Rudloff "Rudloff (3 commits)")[![ssw1cblarrion](https://avatars.githubusercontent.com/u/229024766?v=4)](https://github.com/ssw1cblarrion "ssw1cblarrion (3 commits)")

---

Tags

devdebugprofilerdebugbartoolbardebug bar

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/php-debugbar-php-debugbar/health.svg)

```
[![Health](https://phpackages.com/badges/php-debugbar-php-debugbar/health.svg)](https://phpackages.com/packages/php-debugbar-php-debugbar)
```

###  Alternatives

[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.2k124.3M624](/packages/barryvdh-laravel-debugbar)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[fruitcake/laravel-telescope-toolbar

Toolbar for Laravel Telescope based on Symfony Web Profiler

8041.6M3](/packages/fruitcake-laravel-telescope-toolbar)[recca0120/laravel-tracy

A Laravel Package to integrate Nette Tracy Debugger

388283.0k3](/packages/recca0120-laravel-tracy)[snowair/phalcon-debugbar

Integrates PHP Debug Bar with Phalcon.

160123.3k1](/packages/snowair-phalcon-debugbar)[symfony/ai-mate

AI development assistant MCP server for Symfony projects

1624.9k11](/packages/symfony-ai-mate)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
