PHPackages                             martynbiz/phpdebugbar - 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. martynbiz/phpdebugbar

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

martynbiz/phpdebugbar
=====================

A wrapper for maximebf/debugbar to be simpler and configurable (e.g. disabled in production) on instantiation.

1276PHP

Since Jun 11Pushed 10y ago1 watchersCompare

[ Source](https://github.com/martynbiz/phpdebugbar)[ Packagist](https://packagist.org/packages/martynbiz/phpdebugbar)[ RSS](/packages/martynbiz-phpdebugbar/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Debug Bar (wrapper)
=======================

[](#php-debug-bar-wrapper)

A wrapper for maximebf/debugbar to be simpler and configurable (e.g. disabled in production) on instantiation.

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

[](#installation)

via Composer:

```
"martynbiz/phpdebugbar": "dev-master"

```

Alternatively, clone and copy into your project:

```
clone https://github.com/martynbiz/phpdebugbar.git

```

Usage
-----

[](#usage)

Firstly, a symlink needs to be made from your project's public directory to the assets directory of maximebf/debugbar/.../Resources. This gives the project access to the neccessary CSS and Js files for the debug bar.

```
ln -s ../vendor/maximebf/debugbar/src/DebugBar/Resources phpdebugbar

```

Note: This path may vary depending on your folder structure.

Below shows how I've set debug bar up within Zend Framework 1:

```
$view->debugbar # new MartynBiz\PHPDebugBar(array(
    'enabled' #> $config->ddebugbar->enabled, // can be set to 0 in production env
    'base_url' #> 'phpdebugbar', // our symlink name to assets (js, css)
));

// set pdo collector to output sql queries
$view->debugbar->addDatabaseCollector($pdo); // pdo instance

// set config to see what config settings have been applied
$view->debugbar->addConfigCollector( $config->toArray() ); // config array

```

Then within my HTML view scripts:

```

    .
    .
    .

    .
    .
    .

```

Then within my controller and/or view:

Add a message to the debugger:

```
$view->debugbar->addMessage('Hello world!');

```

To measure execution time:

```
$view->debugbar->startMeasure('myblock');
.
.
.
$view->debugbar->stopMeasure('myblock', 'My block description');

```

Troubleshooting
---------------

[](#troubleshooting)

If the debug bar doesn't load, check the html source and ensure that the paths are correct for css and js.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

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/c1a27a170ef279c7363e50281f05711095a652ec6489eb060872022a9887ce8a?d=identicon)[martynbiz](/maintainers/martynbiz)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/martynbiz-phpdebugbar/health.svg)

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

###  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)[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)[beyondcode/helo-laravel

HELO Laravel debug helper

90360.1k](/packages/beyondcode-helo-laravel)

PHPackages © 2026

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