PHPackages                             b2r/simple-dump - 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. b2r/simple-dump

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

b2r/simple-dump
===============

v0.1.0(9y ago)018MITPHPPHP &gt;=7.0

Since Feb 20Pushed 9y ago1 watchersCompare

[ Source](https://github.com/b2r/php-simple-dump)[ Packagist](https://packagist.org/packages/b2r/simple-dump)[ Docs](https://github.com/b2r/php-simple-dump)[ RSS](/packages/b2r-simple-dump/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

b2rPHP: SimpleDump
==================

[](#b2rphp-simpledump)

Simple `var_dump` wrapper

[![Build Status](https://camo.githubusercontent.com/bfa84b9354c746706c2be75ec28275d5a8aac8f4a7ce1aea8d9096d2be57bc0a/68747470733a2f2f7472617669732d63692e6f72672f6232722f7068702d73696d706c652d64756d702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/b2r/php-simple-dump)

- [CHANGELOG](CHANGELOG.md)

Summary
-------

[](#summary)

- Minify `var_dump` result
- Register `p` global function : `function($value...): void` echo dump result
- Register `ps` global function : `function($value...): string` get dump string

Usage
-----

[](#usage)

```
use b2r\Component\SimpleDump\SimpleDump;

// get as string
$server = SimpleDump::dump($_SERVER);

// echo
SimpleDump::display($_SERVER);

// Register global function `p` and `ps`
SimpleDump::init();

// get as string
$server = ps($_SERVER);

// echo
p($_SERVER);
```

Comparison
----------

[](#comparison)

```
// Register global function `p` and `ps`
b2r\Component\SimpleDump\SimpleDump::init();

# Store
$value = [
    'string' => 'string',
    'int'    => 1,
    'float'  => 1.0,
    'true'   => true,
    'false'  => false,
    'null'   => null,
];
$value['object'] = (object)$value;

# Echo
echo "------------------------------------------------------------\n";
p($value);
echo "------------------------------------------------------------\n";
var_dump($value);
```

**result**

```
------------------------------------------------------------
array(7) {
  ["string"]=> string(6) "string"
  ["int"]=> int(1)
  ["float"]=> float(1)
  ["true"]=> bool(true)
  ["false"]=> bool(false)
  ["null"]=> NULL
  ["object"]=> object(stdClass)#3 (6) {
    ["string"]=> string(6) "string"
    ["int"]=> int(1)
    ["float"]=> float(1)
    ["true"]=> bool(true)
    ["false"]=> bool(false)
    ["null"]=> NULL
  }
}
------------------------------------------------------------
array(7) {
  ["string"]=>
  string(6) "string"
  ["int"]=>
  int(1)
  ["float"]=>
  float(1)
  ["true"]=>
  bool(true)
  ["false"]=>
  bool(false)
  ["null"]=>
  NULL
  ["object"]=>
  object(stdClass)#3 (6) {
    ["string"]=>
    string(6) "string"
    ["int"]=>
    int(1)
    ["float"]=>
    float(1)
    ["true"]=>
    bool(true)
    ["false"]=>
    bool(false)
    ["null"]=>
    NULL
  }
}

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

3418d ago

### Community

Maintainers

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

---

Top Contributors

[![b2r](https://avatars.githubusercontent.com/u/74344?v=4)](https://github.com/b2r "b2r (3 commits)")

### Embed Badge

![Health badge](/badges/b2r-simple-dump/health.svg)

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

###  Alternatives

[ammarfaizi2/googletranslate

Google Translate

2621.7k](/packages/ammarfaizi2-googletranslate)[bnomei/autoloader-for-kirby

Helper to automatically load various Kirby extensions in a plugin

185.7k2](/packages/bnomei-autoloader-for-kirby)

PHPackages © 2026

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