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

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

corex/debug
===========

Various helpers for debugging code.

3.1.0(4y ago)07731MITPHPPHP ^7.4 || ^8.0

Since Dec 10Pushed 4y agoCompare

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

READMEChangelogDependencies (2)Versions (11)Used By (1)

Debug functions.
================

[](#debug-functions)

Various helpers for debugging code.

[![License](https://camo.githubusercontent.com/cb00db89224b4d48070c3b7feb5ca03d007002b087f3ed323969e005ef61bce0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636f7265782f64656275672e737667)](https://camo.githubusercontent.com/cb00db89224b4d48070c3b7feb5ca03d007002b087f3ed323969e005ef61bce0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636f7265782f64656275672e737667)[![Build Status](https://camo.githubusercontent.com/0527b1383bd8763684fb8801dd3273512c4348fe96b6f378a9c33b2b36bd8ca0/68747470733a2f2f6170702e7472617669732d63692e636f6d2f636f7265782f64656275672e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/0527b1383bd8763684fb8801dd3273512c4348fe96b6f378a9c33b2b36bd8ca0/68747470733a2f2f6170702e7472617669732d63692e636f6d2f636f7265782f64656275672e7376673f6272616e63683d6d6173746572)[![codecov](https://camo.githubusercontent.com/54f69e81bba6e1af39734ca47eb2a24b03766f6c2811e11a762c121b6e31b7fb/68747470733a2f2f636f6465636f762e696f2f67682f636f7265782f64656275672f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://camo.githubusercontent.com/54f69e81bba6e1af39734ca47eb2a24b03766f6c2811e11a762c121b6e31b7fb/68747470733a2f2f636f6465636f762e696f2f67682f636f7265782f64656275672f6272616e63682f6d61737465722f67726170682f62616467652e737667)

This package is a simple and valuable tool when debug'ing legacy codebases and while developing. It is based on the excellent var-dumper package from Symfony.

Functions
---------

[](#functions)

### d() - Dump value(s)

[](#d---dump-values)

This function is an alias for dump() function which comes from var-dumper package.

### dv() - Dump value(s) and return builder

[](#dv---dump-values-and-return-builder)

This function has the same parameters as d() but will only return an expressive caster.

### dd() - Dump value(s) and die() - exists in Symfony VarDumper component.

[](#dd---dump-values-and-die---exists-in-symfony-vardumper-component)

This function does only exist in var-dumper package but is documented here to show relevant debug functions.

### d\_show\_uses() - Show debug uses

[](#d_show_uses---show-debug-uses)

Must be call latest in the chain

```
// Dump value(s).
d('value');

// Dump value(s) and return builder.
dv('value')->value();

// Dump value(s) and die().
dd('value');

// Show debug uses. Must be call latest in the chain.
d_show_uses();
```

Builder (for renderers)
-----------------------

[](#builder-for-renderers)

When receiving a builder from i.e. dv(), it is possible to chain renderers i.e. -&gt;value()-&gt;json()-&gt;....

- value() - Show value.
- json() - Show json.
- keys() - Show keys for an array.
- constants() - Show constants for an object or a class.
- extend() - Show class extends for an object or a class.
- interfaces() - Show interfaces for an object or a class.
- methods() - Show methods for an object or a class.
- md5() - Show md5 sum.
- objectHash() - Show object hash (spl\_object\_hash) for an object.

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity72

Established project with proven stability

 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 ~136 days

Recently: every ~187 days

Total

9

Last Release

1614d ago

Major Versions

1.1.0 → 2.0.02020-06-14

2.1.0 → 3.0.02021-08-29

PHP version history (2 changes)1.0.0PHP ^7.2

3.0.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2168107cb28f49e937f963a925553ebac5923aa27cad2e1cf90ddbcabf663d6d?d=identicon)[corex](/maintainers/corex)

---

Top Contributors

[![corex](https://avatars.githubusercontent.com/u/21259173?v=4)](https://github.com/corex "corex (17 commits)")

---

Tags

debug

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[php-debugbar/php-debugbar

Debug bar in the browser for php application

4.4k21.3M38](/packages/php-debugbar-php-debugbar)[laminas/laminas-developer-tools

Module for developer and debug tools for use with laminas-mvc applications.

252.0M33](/packages/laminas-laminas-developer-tools)[adobrovolsky97/illuminar

Debug tool for Laravel Framework

2397.1k](/packages/adobrovolsky97-illuminar)[keversc/var-trumper

Add a citation of D. Trump to your dumps while debugging

161.5k](/packages/keversc-var-trumper)

PHPackages © 2026

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