PHPackages                             hexmakina/debugger - 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. hexmakina/debugger

ActivePackage

hexmakina/debugger
==================

Debugger is a PHP wrapper class for var\_dump() output

0.1.4(4y ago)1266[3 issues](https://github.com/HexMakina/Debugger/issues)2mitPHPPHP &gt;=7.0

Since Aug 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/HexMakina/Debugger)[ Packagist](https://packagist.org/packages/hexmakina/debugger)[ RSS](/packages/hexmakina-debugger/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (9)DependenciesVersions (11)Used By (2)

Debugger
========

[](#debugger)

[![Latest Stable Version](https://camo.githubusercontent.com/4f4c37ff150face12f8774887bb082cd7ebbdf9cbd2394f73e546cee83059db3/687474703a2f2f706f7365722e707567782e6f72672f6865786d616b696e612f64656275676765722f76)](https://packagist.org/packages/hexmakina/debugger)[![License](https://camo.githubusercontent.com/264e100ebaf0690e71e309fa747e72c2c7eab0778e7a6cd9acc89612c56253fc/687474703a2f2f706f7365722e707567782e6f72672f6865786d616b696e612f64656275676765722f6c6963656e7365)](https://packagist.org/packages/hexmakina/debugger)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/27b38c96cc3a61efdee501147024bd9a68aa84ad3756fb14f3cd5ce012df0c5f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4865784d616b696e612f44656275676765722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/HexMakina/Debugger/?branch=main)[![](https://camo.githubusercontent.com/e44e40fc5fca4e3f0d7025854d526ed355e113d3b0d586e5ac3a62d81b36edb1/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f66363030336366613232646133323264376231392f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/HexMakina/Debugger/maintainability)[![PSR-4 Compliant](https://camo.githubusercontent.com/2f4700086d2e2fe807bd70b7479ef20330e582cd6a594f203de5b49015d15ab8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5053522d342d627269676874677265656e)](https://camo.githubusercontent.com/2f4700086d2e2fe807bd70b7479ef20330e582cd6a594f203de5b49015d15ab8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5053522d342d627269676874677265656e)[![PSR-12 Compliant](https://camo.githubusercontent.com/f5517c4a8a2438b2152b62762e852385c588ff2c1d8a028ba56d0626e1151e94/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5053522d31322d627269676874677265656e)](https://camo.githubusercontent.com/f5517c4a8a2438b2152b62762e852385c588ff2c1d8a028ba56d0626e1151e94/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5053522d31322d627269676874677265656e)[![PHP 7.0 Required](https://camo.githubusercontent.com/c3f404881a59cc0a4fcbd46c5f4f02cac8f01f589fc818f74538a88353f854fb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e302d627269676874677265656e)](https://camo.githubusercontent.com/c3f404881a59cc0a4fcbd46c5f4f02cac8f01f589fc818f74538a88353f854fb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e302d627269676874677265656e)

wrapper for var\_dump, optional full stack trace, mandatory good looks

- it tells you were the call was initiated so you don't ever have to look for a forgotten var\_dump()
- it shows you the trace of calls that lead to the dump
- for each trace, it presents you with the filename, the class name and the function with params

no more wondering how a bug came into being.

Usage
-----

[](#usage)

Instantiate Debugger; to load the class and shortcuts

```
new \HexMakina\Debugger\Debugger();

```

Debugger class file has 2 namespaces, the debugger itself in HexMakina\\Debugger, and in the root namespace, 4 shortcuts:

```
vd($var, $label);  // visual dump
dd($var, $label);  // visual dump AND die();
vdt($var, $label); // visual dump with full trace
ddt($var, $label); // visual dump with full trace AND die();

```

For instance, dumping the variable $foo, in file bootstrap.php, line 16, the output of `vd($foo);` would be:

```
**************
[bootstrap.php            16]       ?::vd(1627941733.4195)
string(4) "bar"

```

and the output of `vd($foo, 'a label for easy spotting');` would be:

```
******* (a label for easy spotting) *******
[bootstrap.php            16]       ?::vd(1627942158.3575)
string(3) "bar"

```

but `vdt($foo);` would be:

```
**************
[index.php                 2]          ?::require(/var/www/dev.engine/koral/lareponse/koral/bootstrap.php)
[bootstrap.php            16]       ?::vdt(1627941924.2403)
string(4) "bar"

```

We now see the whole path the program took before reaching the debugging command

Deeper into the code, in a sub-sub-sub-sub-.. routine, the output of `vdt($foo, 'inspecting foo');` would be:

```
******* (inspecting) *******
[index.php                35]  HexMakina\koral\Controllers\Home::bootstrap()
[Home.php                 28]  App\Controllers\Home::common_viewport(HexMakina\kadro\Controllers\Reception)
[Home.php                 18]  HexMakina\TightORM\TableModel::filter()
[TableModel.php          184]  HexMakina\koral\Models\Worker::filter(Array #0, Array #0)
[Worker.php               78]  HexMakina\TightORM\TightModel::filter(Array #0, Array #0)
[TightModel.php          160]  HexMakina\TightORM\TightModelSelector::__construct(HexMakina\koral\Models\Worker)
[TightModelSelector.php   20]  HexMakina\TightORM\TableModel::table()
[Crudites.php             31]  ::vdt(1631261380.9958)
string(6) "bar"

```

Easy debugging &amp; old-school formatting, that's Debugger for you.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance11

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity42

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.

###  Release Activity

Cadence

Every ~5 days

Total

9

Last Release

1700d ago

PHP version history (2 changes)0.0.1PHP &gt;=7.4

0.0.3PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/973280baa800481e705055e3603932b782065471f88e7a3bedd350c3b3a8bcfd?d=identicon)[HexMakina](/maintainers/HexMakina)

---

Top Contributors

[![HexMakina](https://avatars.githubusercontent.com/u/20891495?v=4)](https://github.com/HexMakina "HexMakina (35 commits)")

### Embed Badge

![Health badge](/badges/hexmakina-debugger/health.svg)

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

PHPackages © 2026

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