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

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

xicrow/php-debug
================

PHP debugging tools

5.0.1(1y ago)23.7k↓100%MITPHPPHP ~8.0

Since Mar 22Pushed 1y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (1)Versions (36)Used By (0)

Debug
=====

[](#debug)

Debugging tools for PHP

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ae469d94e4f869f8237fb70d6bcd0918272bcd778a8bf5c54d60c755ac49babe/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f786963726f772f7068702d64656275672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/xicrow/php-debug/?branch=master)[![Scrutinizer Code Coverage](https://camo.githubusercontent.com/b3e202543954738fe73f0aef3e125f96de3f7ffa9a6717407488789f126bff18/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f786963726f772f7068702d64656275672f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/xicrow/php-debug/?branch=master)[![Scrutinizer Build Status](https://camo.githubusercontent.com/91d247a3b7a8fd93f6b9564e7e80f6dbbf3b90478753980f8131892f08b1acda/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f786963726f772f7068702d64656275672f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/xicrow/php-debug/build-status/master)

[![Packagist Latest Stable Version](https://camo.githubusercontent.com/6f723e0737e44fc9de82c7d1fe69496f329fbbf07d1e3c1200cd7d25b4b8c747/68747470733a2f2f706f7365722e707567782e6f72672f786963726f772f7068702d64656275672f762f737461626c65)](https://packagist.org/packages/xicrow/php-debug)[![Packagist Total Downloads](https://camo.githubusercontent.com/c52adac97fe40cde106fc9d850c43eb82c094480ae22adc2229274a29787660b/68747470733a2f2f706f7365722e707567782e6f72672f786963726f772f7068702d64656275672f646f776e6c6f616473)](https://packagist.org/packages/xicrow/php-debug)

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

[](#installation)

The recommended way to install is through [Composer](https://getcomposer.org/):

```
composer require xicrow/php-debug:~5.0
```

OR

```
composer require --dev xicrow/php-debug:~5.0
```

Optionally add it to your `composer.json` file:

```
{
	"require": {
		"xicrow/php-debug": "~5.0"
	}
}
```

OR

```
{
	"require-dev": {
		"xicrow/php-debug": "~5.0"
	}
}
```

Example
-------

[](#example)

See examples in the `demo` folder.

View the seperate readme for:

- [Debugger](Debugger.md)
- [Timer](Timer.md)

TODO
----

[](#todo)

- Debug functions for displaying variable information, pr(), vd(), etc.
    *Implemented, available in `Debugger` class*
- Collection class for Timer::$timers, and maybe others
    *Implemented, available in `Collection` class*
    *Removed, too memory hungry*
- Memory class for measuring memory usage
    *Implemented, available in `Memory` class*
    *Removed, too unreliable*
- Improve Timer and Memory, perhaps a Profiler class
    *Implemented, available in `Profiler` class*
    *Removed, along with Memory*
- Add PHPunit tests
    *Implemented, now remeber to keep them updated*
- Improve Debugger, foldable tree of arrays/objects
    *Skipped, not sensible to do, clutter with either HTML or JS/CSS*
- Groupable timers, timers with the same name will be grouped and min, max and average will be calculated (activate when stopping a timer)
- Update example demo output in Debugger and Timer README
- Update to PHP 7.4Done Implemented type declarations, return types, etc. Implemented type prefixed variables
- Change option arrays to explicit variables or option classes Fixed in most places, just need the rest

License
-------

[](#license)

Copyright © 2018 Jan Ebsen Licensed under the MIT license.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance44

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 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.

###  Release Activity

Cadence

Every ~96 days

Recently: every ~592 days

Total

35

Last Release

437d ago

Major Versions

1.0.14 → 2.0.02016-06-19

2.1.6 → 3.0.02018-09-16

3.0.0 → 4.0.02022-08-20

4.0.0 → 5.0.02023-02-17

PHP version history (8 changes)1.0.1PHP ^5.6

1.0.3PHP ^5.4

1.0.9PHP ^5.5

1.0.10PHP ^5.5|^7.0

3.0.0PHP ^7.0

4.0.0PHP ^7.4

5.0.0PHP ^8.0

5.0.1PHP ~8.0

### Community

Maintainers

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

---

Top Contributors

[![xicrow](https://avatars.githubusercontent.com/u/1567795?v=4)](https://github.com/xicrow "xicrow (189 commits)")

---

Tags

debugphptimerphpdebugtools

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[h4cc/phpqatools

A meta composer package for PHP QA Tools.

6418.6k1](/packages/h4cc-phpqatools)[jbzoo/jbdump

Script for debug and dump PHP variables and other stuff. This tool is a nice replacement for print\_r() and var\_dump() functions.

211.1M3](/packages/jbzoo-jbdump)

PHPackages © 2026

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