PHPackages                             arashjafari/dump-plus - 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. [CLI &amp; Console](/categories/cli)
4. /
5. arashjafari/dump-plus

ActiveLibrary[CLI &amp; Console](/categories/cli)

arashjafari/dump-plus
=====================

Provides variety of formats for dumps information about variables or objects

1.0.1(4y ago)222MITPHPPHP &gt;=5.4.0

Since Nov 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/arashjafari/dump-plus)[ Packagist](https://packagist.org/packages/arashjafari/dump-plus)[ Docs](https://github.com/arashjafari/dump-plus)[ RSS](/packages/arashjafari-dump-plus/feed)WikiDiscussions main Synced 4w ago

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

Dump Plus
=========

[](#dump-plus)

With DumpPlus, you can view the content of any variable or object in many different formats:

- syntax highlighting
- Browsers console log output
- Via Javascript alert() function
- Default var\_dump() output
- Command-line interface output
- Simple format
- JSON format

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

[](#installation)

Use Composer to install the library:

```
$ composer require arashjafari/dump-plus

```

Screenshots
-----------

[](#screenshots)

Screenshot of DumpPlus::pretty($colors); [![pretty](./examples/pretty.png "Screenshot of DumpPlus::pretty")](./examples/pretty.png)

Screenshot of DumpPlus::console($colors); [![console](./examples/console.png "Screenshot of DumpPlus::console")](./examples/console.png)

Screenshot of DumpPlus::alert($colors); [![alert](./examples/alert.png "Screenshot of DumpPlus::alert")](./examples/alert.png)

Example
-------

[](#example)

```
use ArashJafari\DumpPlus\DumpPlus;

// Sample array to dump
$colors = ['key1' => 'red', 'key2' => 'blue'];

// Default dump output
DumpPlus::dump($colors);

// Dump with syntax highlighting
DumpPlus::pretty($colors);

// Dump in simple format
DumpPlus::simple($colors);

// Dump for CLI output
DumpPlus::cli($colors);

// Dump in browser console
DumpPlus::console($colors);

// Dump in Javascript alert!
DumpPlus::alert($colors);

// Dump in JSON format
DumpPlus::json($colors);
```

Calling with multiple arguments:

```
use ArashJafari\DumpPlus\DumpPlus;

$msg = "Hello World!";
$colors = ['key1' => 'red', 'key2' => 'blue'];

DumpPlus::dump($msg, $colors);
```

Calling with functions instead of DumpPlus methods:

```
$colors = ['key1' => 'red', 'key2' => 'blue'];

dp($colors); // DumpPlus::dump($colors);
dpd($colors); // DumpPlus::dump($colors); die();

dp_pretty($colors); // DumpPlus::pretty($colors);
dpd_pretty($colors); // DumpPlus::pretty($colors); die();

dp_simple($colors); // DumpPlus::simple($colors);
dpd_simple($colors); // DumpPlus::simple($colors); die();

dp_cli($colors); // DumpPlus::cli($colors);
dpd_cli($colors); // DumpPlus::cli($colors); die();

dp_console($colors); // DumpPlus::console($colors);
dpd_console($colors); // DumpPlus::console($colors); die();

dp_alert($colors); // DumpPlus::alert($colors);
dpd_alert($colors); // DumpPlus::alert($colors); die();

dp_json($colors); // DumpPlus::json($colors);
dpd_json($colors); // DumpPlus::json($colors); die();
```

License
-------

[](#license)

The DumpPlus is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Total

2

Last Release

1630d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/55a8f3b70b9fadd0e423301ced4ae6c0e1bd21038641994c70a37c3d7b7a6867?d=identicon)[arashjafari](/maintainers/arashjafari)

---

Top Contributors

[![arashjafari](https://avatars.githubusercontent.com/u/714741?v=4)](https://github.com/arashjafari "arashjafari (2 commits)")

---

Tags

dumpdump-datadump-variableshacktoberfestclidebugdumpprettyprintprint\_rvar\_dumpalertbetterconsole.logdump\_plus

### Embed Badge

![Health badge](/badges/arashjafari-dump-plus/health.svg)

```
[![Health](https://phpackages.com/badges/arashjafari-dump-plus/health.svg)](https://phpackages.com/packages/arashjafari-dump-plus)
```

###  Alternatives

[leeoniya/dump-r

a cleaner, leaner mix of print\_r() and var\_dump()

12368.1k5](/packages/leeoniya-dump-r)[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)[buggregator/trap

A simple and powerful tool for debugging PHP applications.

2591.7M40](/packages/buggregator-trap)[mmucklo/krumo

KRUMO - version 2.0 of print\_r(); and var\_dump(); (with new updates)

89168.0k6](/packages/mmucklo-krumo)[alecrabbit/php-console-spinner

Extremely flexible spinner for \[async\] php cli applications

24032.0k2](/packages/alecrabbit-php-console-spinner)[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)
