PHPackages                             yong/magento2debugbar - 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. yong/magento2debugbar

ActiveMagento2-module[Debugging &amp; Profiling](/categories/debugging)

yong/magento2debugbar
=====================

PHPDebugbar for Magento2

4204PHP

Since Jul 31Pushed 8y ago2 watchersCompare

[ Source](https://github.com/yongchengchen/magento2debugbar)[ Packagist](https://packagist.org/packages/yong/magento2debugbar)[ RSS](/packages/yong-magento2debugbar/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Magento2 Debugbar
-----------------

[](#magento2-debugbar)

[![Total Downloads](https://camo.githubusercontent.com/a1949507124c4d33ad7bbc055d0dcf34da9d879d08762c0427cf6be25b9ddefe/68747470733a2f2f706f7365722e707567782e6f72672f796f6e672f6d6167656e746f3264656275676261722f642f746f74616c2e737667)](https://packagist.org/packages/yong/magento2debugbar)[![Latest Stable Version](https://camo.githubusercontent.com/684b50e7495b66271b8b409f250737b9ad5976e0958f17b2e1643141a8177322/68747470733a2f2f706f7365722e707567782e6f72672f796f6e672f6d6167656e746f3264656275676261722f762f737461626c652e737667)](https://packagist.org/packages/yong/magento2debugbar)[![Latest Unstable Version](https://camo.githubusercontent.com/a1d132cae6733a413fcba71103ae50c9a6fa406be4f50d23dbd356b3d6a7a854/68747470733a2f2f706f7365722e707567782e6f72672f796f6e672f6d6167656e746f3264656275676261722f762f756e737461626c652e737667)](https://packagist.org/packages/yong/magento2debugbar)[![License](https://camo.githubusercontent.com/584983c3f7ce42bb1ba28be3639363dae68b93c19438f6175daa72945108dfe5/68747470733a2f2f706f7365722e707567782e6f72672f796f6e672f6d6167656e746f3264656275676261722f6c6963656e73652e737667)](https://packagist.org/packages/yong/magento2debugbar)

This is a package to integrate [PHP Debug Bar](http://phpdebugbar.com/) with Magento 2.

It lightly dynamic inject and collect debug info for Magento2 for development/production mode. You can configure enable it by specific IP address or specific cookie name and value matched, and you can extend it by your custom access control functions.

It bootstraps some Collectors to work with Magento2 and implements a couple custom DataCollectors, specific for Magento2. It is configured to display Redirects and (jQuery) Ajax Requests. (Shown in a dropdown) Read [the documentation](http://phpdebugbar.com/docs/) for more configuration options.

This package includes some custom collectors:

- QueryCollector: Show queries, including binding + timing
- ControllerCollector: Show information about the current/redirect Route Action.
- TemplateCollector: Show the currently loaded template files.
- ModelCollector: Show the loaded Models
- ProfileCollector: Shows the Magento2 profiler details
- RequestCollector: The default RequestCollector via PHPDebugbar
- MemoryCollector: The default MemoryCollector via PHPDebugbar
- MessagesCollector: The default MessagesCollector via PHPDebugbar

And it also replace Magento default exception handler as Whoops Error Handler.Read [filp/whoops](https://github.com/filp/whoops) for more details.

It also provides config interface for easy dynamic extend your functionality.

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

[](#installation)

Require this package with composer:

```
composer require yong/magento2debugbar dev-master
```

After updating composer, add 'phpdebugbar' configuration to app/etc/env.php

```
  'phpdebugbar' =>
  array (
    'enabled' => 1,
    'enable_checker' =>
    array (
      'cookie' =>
      array(
        'name' => 'php_debugbar',
        'value' => 'cookievalue'
      ),
    ),
  )
```

and then run

```
bin/magento module:enable Yong_Magento2DebugBar
```

Usage
-----

[](#usage)

Enable/Disable: go to file app/etc/env.php, set 'enabled' of array phpdebugbar as 0 for disable, 1 for enable(but still need cookie pair check)

enable\_checker: When phpdebugbar is enabled, it will do further check, you need to set your cookie pair in app/etc/env.php, and also your browser has the same cookie pair. Then phpdebugbar will be launched. Otherwise it will not be launched and will collect nothing, it will not affect the performance. So you can deploy it on your production environment.

License
-------

[](#license)

And of course:

MIT:

[![Screenshot](https://camo.githubusercontent.com/c372b4023df1757fda85af8c397d42b0fa0811c56889a6a1b0cd46fc7abcba45/68747470733a2f2f73332d61702d736f757468656173742d322e616d617a6f6e6177732e636f6d2f696e7075742e796f6e676368656e672e746563682f7075626c69632f696d616765732f6d64312e706e67)](https://camo.githubusercontent.com/c372b4023df1757fda85af8c397d42b0fa0811c56889a6a1b0cd46fc7abcba45/68747470733a2f2f73332d61702d736f757468656173742d322e616d617a6f6e6177732e636f6d2f696e7075742e796f6e676368656e672e746563682f7075626c69632f696d616765732f6d64312e706e67)[![Screenshot](https://camo.githubusercontent.com/42e2e8eb872676c7a80d26e4419e3e1b87a557b2e06af2b8a79b70d1c6718a81/68747470733a2f2f73332d61702d736f757468656173742d322e616d617a6f6e6177732e636f6d2f696e7075742e796f6e676368656e672e746563682f7075626c69632f696d616765732f6d64322e706e67)](https://camo.githubusercontent.com/42e2e8eb872676c7a80d26e4419e3e1b87a557b2e06af2b8a79b70d1c6718a81/68747470733a2f2f73332d61702d736f757468656173742d322e616d617a6f6e6177732e636f6d2f696e7075742e796f6e676368656e672e746563682f7075626c69632f696d616765732f6d64322e706e67)[![Screenshot](https://camo.githubusercontent.com/6f5db4a36bec2398bb7b7ddacb46605d737e93f8af0f68ea4a99ed318ed03035/68747470733a2f2f73332d61702d736f757468656173742d322e616d617a6f6e6177732e636f6d2f696e7075742e796f6e676368656e672e746563682f7075626c69632f696d616765732f6d64332e706e67)](https://camo.githubusercontent.com/6f5db4a36bec2398bb7b7ddacb46605d737e93f8af0f68ea4a99ed318ed03035/68747470733a2f2f73332d61702d736f757468656173742d322e616d617a6f6e6177732e636f6d2f696e7075742e796f6e676368656e672e746563682f7075626c69632f696d616765732f6d64332e706e67)[![Screenshot](https://camo.githubusercontent.com/6348460dc40e913d50d791029d2bc1796fdfa2e33422114e400ee9949d3ea16a/68747470733a2f2f73332d61702d736f757468656173742d322e616d617a6f6e6177732e636f6d2f696e7075742e796f6e676368656e672e746563682f7075626c69632f696d616765732f6d64342e706e67)](https://camo.githubusercontent.com/6348460dc40e913d50d791029d2bc1796fdfa2e33422114e400ee9949d3ea16a/68747470733a2f2f73332d61702d736f757468656173742d322e616d617a6f6e6177732e636f6d2f696e7075742e796f6e676368656e672e746563682f7075626c69632f696d616765732f6d64342e706e67)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

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

---

Top Contributors

[![yongchengchen](https://avatars.githubusercontent.com/u/11036128?v=4)](https://github.com/yongchengchen "yongchengchen (1 commits)")

---

Tags

collectorcomposermagentophpdebugbarscreenshotwhoops

### Embed Badge

![Health badge](/badges/yong-magento2debugbar/health.svg)

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

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M918](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[jokkedk/webgrind

Webgrind is a Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick'n'dirty optimizations it does the job.

3.3k193.0k](/packages/jokkedk-webgrind)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)

PHPackages © 2026

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