PHPackages                             sunra/dbug - 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. sunra/dbug

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

sunra/dbug
==========

Most beautiful variable dump library for PHP (ColdFusion like style)

0.2.1(10y ago)866.5k↓26.7%18GPL-3.0PHPPHP &gt;=5.3.2

Since Dec 12Pushed 10y ago2 watchersCompare

[ Source](https://github.com/sunra/dBug)[ Packagist](https://packagist.org/packages/sunra/dbug)[ Docs](http://github.com/sunra/dBug.git)[ RSS](/packages/sunra-dbug/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (3)Used By (8)

dBug
====

[](#dbug)

- Updated for PSR-4 copmliance
- created composer package

NEW
---

[](#new)

- Updated to version from August 6th, 2012 of Ospinto's code
- move to psr-4

Usage
-----

[](#usage)

### Twig Filter -

[](#twig-filter---httpsgithubcomsunradbug-twig-extension)

or

### Install via Composer -

[](#install-via-composer---httpspackagistorgpackagessunradbug)

Class will be autoloaded.

#### usage

[](#usage-1)

```
   new \Ospinto\dBug($myVariable);
```

#### Class arguments:

[](#class-arguments)

```
__construct ($var,$forceType="",$bCollapsed=false, $var_name='')

$var - variable to dump,
$bCollapsed - view collapsed
$var_name - name of variable - displayed in dump header

```

More examples at

Features
--------

[](#features)

PHP version of ColdFusion’s cfdump.

Outputs colored and structured tabular variable information.

Variable types supported are: Arrays, Classes/Objects, Database and XML Resources.

Ability to force certain types of output. Example: You can force an object variable to be outputted as an array type variable.

Stylesheet can be easily edited.

Table cells can be expanded and collapsed.

It’s FREE!!!

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.3% 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 ~1 days

Total

2

Last Release

3808d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b66ec3a106b163a290acec0bfcb2261fac0d31f7381ab8885905b699098b82c?d=identicon)[sunra](/maintainers/sunra)

---

Top Contributors

[![sunra](https://avatars.githubusercontent.com/u/635370?v=4)](https://github.com/sunra "sunra (28 commits)")[![justincampbell](https://avatars.githubusercontent.com/u/246978?v=4)](https://github.com/justincampbell "justincampbell (2 commits)")[![repat](https://avatars.githubusercontent.com/u/516807?v=4)](https://github.com/repat "repat (1 commits)")

---

Tags

phpdebugdump

### Embed Badge

![Health badge](/badges/sunra-dbug/health.svg)

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

###  Alternatives

[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)[php-sage/sage

☯ Insightful PHP debugging assistant.

5639.7k5](/packages/php-sage-sage)[h4cc/phpqatools

A meta composer package for PHP QA Tools.

6418.6k1](/packages/h4cc-phpqatools)

PHPackages © 2026

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