PHPackages                             okneloper/debug - 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. okneloper/debug

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

okneloper/debug
===============

Debug tools for PHP applications

011PHP

Since Oct 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/okneloper/debug)[ Packagist](https://packagist.org/packages/okneloper/debug)[ RSS](/packages/okneloper-debug/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

FirePHP Error handler
=====================

[](#firephp-error-handler)

Register this error handler to see PHP errors in your browsers console using FirePHP.

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

[](#installation)

Install the using `composer`:

```
composer require okneloper/debug
```

Also install FirePHP extension e.g.: [FirePHP Chrome Extension](https://chrome.google.com/webstore/detail/firephp4chrome/gpgbmonepdpnacijbbdijfbecmgoojma)

Usage
-----

[](#usage)

Register the FirePHP Handler:

```
\Okneloper\Debug\Debug::registerFirePhpHandler();
echo ${'undefined variable'};
```

See PHP notice in the broswer console.

Configuration
-------------

[](#configuration)

### Set the root path

[](#set-the-root-path)

Set the root path of your application to exclude it from the error file path:

```
$debug = \Okneloper\Debug\Debug::registerFirePhpHandler();
$debug->setRootPath('/home/user/public_html');
```

Before:

```
Notice: Undefined variable: undefined variable
in /home/user/public_html/public/index.php on line 25

```

After

```
Notice: Undefined variable: undefined variable
in public/index.php on line 25

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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/25fffe676901204d8fae9c25a681be94ff41b03b72ea1fee344683e30492cace?d=identicon)[okneloper](/maintainers/okneloper)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/okneloper-debug/health.svg)

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

###  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)
