PHPackages                             bohmm/php-dumper - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bohmm/php-dumper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bohmm/php-dumper
================

A simple tool for displaying pretty, colorful and clear formatted PHP variables.

v1.0.0(4mo ago)05MITPHPPHP ^8.5

Since Jan 5Pushed 4mo agoCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (0)

PHP dumper
==========

[](#php-dumper)

A simple tool for displaying pretty, colorful and clear formatted PHP variables.

[![Banner](https://private-user-images.githubusercontent.com/245711877/532030315-5be155ec-1982-4b85-ba90-4d76878d7ff5.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUxNDI1MDIsIm5iZiI6MTc3NTE0MjIwMiwicGF0aCI6Ii8yNDU3MTE4NzcvNTMyMDMwMzE1LTViZTE1NWVjLTE5ODItNGI4NS1iYTkwLTRkNzY4NzhkN2ZmNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNDAyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDQwMlQxNTAzMjJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00ZGRhY2FhYzI2MDc4ZTgyMDdlOWZiYmE3NmZmMjVlNzFjN2JkYTQ2NjAwNDFmYmZhNWMzOGExZGZjZjEwMzM0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.EqTOhpeBxY3YyF60qkHEnDcGGs4Iio9VsG45PL9zKGI)](https://private-user-images.githubusercontent.com/245711877/532030315-5be155ec-1982-4b85-ba90-4d76878d7ff5.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUxNDI1MDIsIm5iZiI6MTc3NTE0MjIwMiwicGF0aCI6Ii8yNDU3MTE4NzcvNTMyMDMwMzE1LTViZTE1NWVjLTE5ODItNGI4NS1iYTkwLTRkNzY4NzhkN2ZmNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNDAyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDQwMlQxNTAzMjJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00ZGRhY2FhYzI2MDc4ZTgyMDdlOWZiYmE3NmZmMjVlNzFjN2JkYTQ2NjAwNDFmYmZhNWMzOGExZGZjZjEwMzM0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.EqTOhpeBxY3YyF60qkHEnDcGGs4Iio9VsG45PL9zKGI)

supported types: `null` `boolean` `integer` `float` `string` `array` `object` `closure` `resource`

Install
-------

[](#install)

easy installation via composer

```
composer require --dev bohmm/php-dumper
```

Usage
-----

[](#usage)

Using PHP dumper is easy. Enter a variable as the first parameter in the constructor. PHP dumper allows two display modes `default` or `inline`, which can be set using the second parameter (false = default, true = inline).

default usage:

```
require __DIR__ . '/path/to/autoload.php';

$variable = 'hello world';

# display default mode
$dumper = new \Bohmm\PhpDumper\Dumper($variable);
echo $dumper->dump();

# display inline mode
$dumper = new \Bohmm\PhpDumper\Dumper($variable, true);
echo $dumper->dump();
```

or via helper functions `dump` or `ddump`:

```
require __DIR__ . '/path/to/autoload.php';

$variable = 'hello world';

# display the variable (default or inline mode)
dump($variable);
dump($variable, true);

# display the variable and terminate other scripts (default or inline mode)
ddump($variable);
ddump($variable, true);
```

Disclaimer
----------

[](#disclaimer)

This software is provided "as is", without any warranty of any kind, and is used at the user's own risk. The author assumes no liability for damages resulting from the use or misuse of this package.

License
-------

[](#license)

PHP dumper is provided under the [MIT license](LICENSE).

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance76

Regular maintenance activity

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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

Unknown

Total

1

Last Release

132d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

dumperphpprint-rvar-dumpphpprint\_rvar\_dumpdumper

### Embed Badge

![Health badge](/badges/bohmm-php-dumper/health.svg)

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

###  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)[ivoba/stop

nice output for debug functions for PHP 5.3

1041.9k5](/packages/ivoba-stop)

PHPackages © 2026

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