PHPackages                             sang-asia/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. sang-asia/debugbar

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

sang-asia/debugbar
==================

Debug bar in the browser for php application

v1.17.3-p2(4y ago)07MITPHPPHP ^8

Since Jun 19Pushed 4y agoCompare

[ Source](https://github.com/sang-asia/php-debugbar)[ Packagist](https://packagist.org/packages/sang-asia/debugbar)[ Docs](https://github.com/sang-asia/php-debugbar)[ RSS](/packages/sang-asia-debugbar/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (4)Versions (71)Used By (0)

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

[](#php-debug-bar)

[![Latest Stable Version](https://camo.githubusercontent.com/f3873c81e81e79b1f73fa33d380edfe780f3a333a2b2afec453dda79aa2cb5ad/68747470733a2f2f706f7365722e707567782e6f72672f73616e672d617369612f64656275676261722f762f737461626c652e706e67)](https://packagist.org/packages/sang-asia/debugbar) [![Total Downloads](https://camo.githubusercontent.com/66e1b3ca7d43842e609a6b99e808934929435fd98a11a0fd1b4e29bf51febd7f/68747470733a2f2f706f7365722e707567782e6f72672f73616e672d617369612f64656275676261722f646f776e6c6f6164732e737667)](https://packagist.org/packages/sang-asia/debugbar) [![License](https://camo.githubusercontent.com/fd2363dc82c16708a607fe0bc549973cdb7a24072399a8278b90232d0b19269b/68747470733a2f2f706f7365722e707567782e6f72672f73616e672d617369612f64656275676261722f6c6963656e73652e737667)](https://packagist.org/packages/sang-asia/debugbar) [![Tests](https://github.com/maximebf/php-debugbar/actions/workflows/run-tests.yml/badge.svg)](https://github.com/sang-asia/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!

[![Screenshot](https://camo.githubusercontent.com/c4c6a06863684a5e54e93bc2e0e6e048d004d479da8bf054a7119fb98ce5d0b8/68747470733a2f2f7261772e6769746875622e636f6d2f73616e672d617369612f7068702d64656275676261722f6d61737465722f646f63732f73637265656e73686f742e706e67)](https://camo.githubusercontent.com/c4c6a06863684a5e54e93bc2e0e6e048d004d479da8bf054a7119fb98ce5d0b8/68747470733a2f2f7261772e6769746875622e636f6d2f73616e672d617369612f7068702d64656275676261722f6d61737465722f646f63732f73637265656e73686f742e706e67)

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

Includes collectors for:

- [PDO](http://php.net/manual/en/book.pdo.php)
- [CacheCache](http://maximebf.github.io/CacheCache/)
- [Doctrine](http://doctrine-project.org)
- [Monolog](https://github.com/Seldaek/monolog)
- [Propel](http://propelorm.org/)
- [Slim](http://slimframework.com)
- [Swift Mailer](http://swiftmailer.org/)
- [Twig](http://twig.sensiolabs.org/)

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

Integrations with other frameworks:

- [Laravel](https://github.com/barryvdh/laravel-debugbar)
- [Atomik](http://atomikframework.com/docs/error-log-debug.html#debug-bar)
- [XOOPS](http://xoops.org/modules/news/article.php?storyid=6538)
- [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)
- Framework-agnostic middleware and PSR-7 with [php-middleware/phpdebugbar](https://github.com/php-middleware/phpdebugbar).

*(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 maximebf/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://phpdebugbar.com/docs).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~53 days

Recently: every ~39 days

Total

59

Last Release

1593d ago

PHP version history (5 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.17.3-p1PHP ^8

### Community

Maintainers

![](https://www.gravatar.com/avatar/f59c86e3850850ba6772b4aae3d8ddf4a5a337f876f3042a4e3d8678b818b953?d=identicon)[sang-asia](/maintainers/sang-asia)

---

Top Contributors

[![maximebf](https://avatars.githubusercontent.com/u/305740?v=4)](https://github.com/maximebf "maximebf (216 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (178 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)")[![GuimDev](https://avatars.githubusercontent.com/u/16418215?v=4)](https://github.com/GuimDev "GuimDev (11 commits)")[![Anahkiasen](https://avatars.githubusercontent.com/u/1321596?v=4)](https://github.com/Anahkiasen "Anahkiasen (7 commits)")[![snapshotpl](https://avatars.githubusercontent.com/u/312655?v=4)](https://github.com/snapshotpl "snapshotpl (7 commits)")[![jfexyz](https://avatars.githubusercontent.com/u/66879?v=4)](https://github.com/jfexyz "jfexyz (5 commits)")[![rhukster](https://avatars.githubusercontent.com/u/1084697?v=4)](https://github.com/rhukster "rhukster (5 commits)")[![mpoiriert](https://avatars.githubusercontent.com/u/4175616?v=4)](https://github.com/mpoiriert "mpoiriert (4 commits)")[![Rudloff](https://avatars.githubusercontent.com/u/840125?v=4)](https://github.com/Rudloff "Rudloff (3 commits)")[![stevelacey](https://avatars.githubusercontent.com/u/289531?v=4)](https://github.com/stevelacey "stevelacey (3 commits)")[![sang-lu](https://avatars.githubusercontent.com/u/33144173?v=4)](https://github.com/sang-lu "sang-lu (3 commits)")[![webmailcontatos](https://avatars.githubusercontent.com/u/11367804?v=4)](https://github.com/webmailcontatos "webmailcontatos (3 commits)")[![tonglil](https://avatars.githubusercontent.com/u/3250776?v=4)](https://github.com/tonglil "tonglil (2 commits)")[![alikon](https://avatars.githubusercontent.com/u/181681?v=4)](https://github.com/alikon "alikon (2 commits)")[![xvilo](https://avatars.githubusercontent.com/u/390769?v=4)](https://github.com/xvilo "xvilo (2 commits)")[![arnaudroulee](https://avatars.githubusercontent.com/u/2988508?v=4)](https://github.com/arnaudroulee "arnaudroulee (2 commits)")[![ciruz](https://avatars.githubusercontent.com/u/987947?v=4)](https://github.com/ciruz "ciruz (2 commits)")[![cloudjibao](https://avatars.githubusercontent.com/u/4042304?v=4)](https://github.com/cloudjibao "cloudjibao (2 commits)")

---

Tags

debugdebugbar

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[php-debugbar/php-debugbar

Debug bar in the browser for php application

4.4k21.3M40](/packages/php-debugbar-php-debugbar)[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k124.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)

PHPackages © 2026

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