PHPackages                             marcocesarato/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. marcocesarato/dumper

ActiveLibrary

marcocesarato/dumper
====================

This class displays structured information about one or more expressions that includes its type and value. Arrays and objects are explored recursively with values indented to show structure.

1.0.0(6y ago)2152[1 issues](https://github.com/marcocesarato/PHP-Dumper/issues)GPL-3.0-or-laterPHPPHP &gt;=5.6

Since Sep 9Pushed 3y ago2 watchersCompare

[ Source](https://github.com/marcocesarato/PHP-Dumper)[ Packagist](https://packagist.org/packages/marcocesarato/dumper)[ RSS](/packages/marcocesarato-dumper/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

PHP Dumper
==========

[](#php-dumper)

[![Build Status](https://camo.githubusercontent.com/4a2e9584a5c88e4a06b5bb280db26e1ea029cd11dc3294d4f8cb2815a424c2d2/68747470733a2f2f7472617669732d63692e636f6d2f6d6172636f636573617261746f2f5048502d44756d7065722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/marcocesarato/PHP-Dumper)

**Version:** 1.0.0.8

**Github:**

**Author:** Marco Cesarato

Description
-----------

[](#description)

This class can display a formatted version of variable values.

It can take the values of one or more variables and generates a string that displays the variable values in a readable format.

Arrays and objects can be traversed recursively to display its member values.

The class can either return a string with the formatted variable values, display it to the current page or even exit the current script.

Requirements
------------

[](#requirements)

- php 5.6+

Install
-------

[](#install)

### Composer

[](#composer)

1. Install composer
2. Type `composer require marcocesarato/dumper`
3. Enjoy

Usage
-----

[](#usage)

```
use marcocesarato\dumper\Dumper;

$arr = [1,2,3,4,5];

$dump = Dumper::get($arr, $arr /* , ... */); // Get string of dump
Dumper::out($arr /* , ... */); // Print
Dumper::fatal($arr /* , ... */); // Print and die
```

Methods
-------

[](#methods)

### Dumper

[](#dumper)

MethodParametersDescriptiongetmixed $expression \[, mixed $... \]
return stringReturn dump as stringoutmixed $expression \[, mixed $... \]
return voidPrint dumpcleanmixed $expression \[, mixed $... \]
return voidClean stream (ob\_clean) and print dumpjsonmixed $expression \[, mixed $... \]
return voidClean stream (ob\_clean) and print json dumpfatalmixed $expression \[, mixed $... \]
return voidPrint dump and dieenableHighlightreturn voidEnable Highlight (default true)disableHighlightreturn voidDisable HighlightdisableHighlightreturn voidDisable HighlightgetDepthreturn intGet Object/Array dump depthsetDepthint $depth
return voidSet Object/Array dump depth

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63% 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

2435d ago

### Community

Maintainers

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

---

Top Contributors

[![marcocesarato](https://avatars.githubusercontent.com/u/36447518?v=4)](https://github.com/marcocesarato "marcocesarato (17 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (6 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (4 commits)")

---

Tags

classdebugdumpdumperphpprint

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

PHPackages © 2026

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