PHPackages                             ghostff/dump7 - 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. ghostff/dump7

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

ghostff/dump7
=============

A pretty version of php var\_dump. This class displays structured information about one or more expressions that includes its type and value.

v2.0.2(5y ago)1210.7k↓16.7%11BSD-3-ClausePHPPHP &gt;=7.0

Since Oct 10Pushed 3y ago2 watchersCompare

[ Source](https://github.com/Ghostff/Dump7)[ Packagist](https://packagist.org/packages/ghostff/dump7)[ RSS](/packages/ghostff-dump7/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)DependenciesVersions (6)Used By (1)

Pretty Data Dump
================

[](#pretty-data-dump)

A pretty version of php [var\_dump](http://php.net/manual/en/function.var-dump.php). This class displays structured information about one or more expressions that includes its type and value.

*Check out [Dump5](https://github.com/Ghostff/Dump5) for PHP 5+*

Installation
============

[](#installation)

You can download the Latest [release version ](https://github.com/Ghostff/pretty_data_dump/releases/) as a standalone, alternatively you can use [Composer](https://getcomposer.org/)

```
composer require ghostff/dump7
```

```
"require": {
    "ghostff/dump7": "^1.0"
}
```

Display Flags
=============

[](#display-flags)

You can simple hide or show some object attribute using a Doc block flag:

`@dumpignore-inheritance`Hides inherited class properties.`@dumpignore-inherited-class`Hides the class name from inherited properties.`@dumpignore-private`Show all properties except the **private** ones.`@dumpignore-protected`Show all properties except the **protected** ones.`@dumpignore-public`Show all properties except the **public** ones.`@dumpignore`Hide the property the Doc comment belongs to.```
/**
* @dumpignore-inheritance
* @dumpignore-inherited-class
* @dumpignore-private
* @dumpignore-public
* @dumpignore-public
*/
Class Foo extends Bar {
    /** @dumpignore */
    private ?BigObject $foo = null;
}
```

Usage
=====

[](#usage)

```
class FooBar
{
    private $inherited_int   = 123;
    private $inherited_array = ['string'];
}

class Bar extends FooBar
{
    private $inherited_float = 0.22;
    private $inherited_bool  = 1 == '1';
}

class Foo extends Bar
{
    private $string = 'string';
    protected $int  = 10;
    public $array   = [
        'foo' => 'bar'
    ];
    protected static $bool = false;
}

$string   = 'Foobar';
$array    = ['foo', 'bar'];
$int      = 327626;
$double   = 22.223;
$null     = null;
$bool     = true;
$resource = fopen('LICENSE', 'r');
$m        = microtime(true);

new Dump(new Foo, $string, $array, $int, $double, $null, $bool, [
    'foo' => 'bar',
    'bar' => 'foo',
    [
        'foo' => 'foobar',
        'bar_foo',
        2 => 'foo',
        'foo' => [
            'barbar' => 55,
            'foofoo' => false,
            'foobar' => null,
        ]
    ]
], $resource);

new Dump(1 == '1', 1 === '1');
Dump::safe(...$args); # running on terminal without color capabilities.
```

Replacing predefined colors:

```
# set($name, [$cgi_color, $cli_color]);
Dump::set('boolean', ['bb02ff', 'purple']);
```

By default, when `Dump` is called inside a function, the call line is set to `new Dump` inside the function instead of the function call. With `setTraceOffset` you can set the offset of each call line.

```
function dump()
{
    Dump::setTraceOffset(2);
    new Dump(...func_get_args()); # Dont use this test.php(line:4) as call line
}

dump('foo', 22, 'bar', true); // Use test.php(line:7) instead
```

CGI output:

[![cgi screenshot](https://github.com/Ghostff/Dump7/raw/master/cgi.png)](https://github.com/Ghostff/Dump7/blob/master/cgi.png)

CLI(Unix):

[![cli screenshot](https://github.com/Ghostff/Dump7/raw/master/posix.png)](https://github.com/Ghostff/Dump7/blob/master/posix.png)

CLI(Window):

[![cli screenshot](https://github.com/Ghostff/Dump7/raw/master/posixWin.png)](https://github.com/Ghostff/Dump7/blob/master/posixWin.png)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

1952d ago

Major Versions

v1.0.01-beta → v2.0.02020-02-08

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15882122?v=4)[ghostff](/maintainers/Ghostff)[@Ghostff](https://github.com/Ghostff)

---

Top Contributors

[![Ghostff](https://avatars.githubusercontent.com/u/15882122?v=4)](https://github.com/Ghostff "Ghostff (28 commits)")

---

Tags

cgidata-dumpdumpphp-cliphp-dumpphp7pretty-data-dumpvar\_dumpdebugerdata\_dump

### Embed Badge

![Health badge](/badges/ghostff-dump7/health.svg)

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

###  Alternatives

[digitalnature/php-ref

A nicer print\_r/var\_dump alternative for PHP 5.3+

351696.0k13](/packages/digitalnature-php-ref)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[ghostff/dump5

A pretty version of php var\_dump. This class displays structured information about one or more expressions that includes its type and value.

204.0k](/packages/ghostff-dump5)[mmucklo/krumo

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

89168.0k6](/packages/mmucklo-krumo)[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)

PHPackages © 2026

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