PHPackages                             spiral/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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. spiral/dumper

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

spiral/dumper
=============

Dumper for PHP variables based on Symfony VarDumper for Spiral Framework and RoadRunner

3.3.1(1y ago)81.7M↓35.1%320MITPHPPHP &gt;= 8.1CI failing

Since Aug 26Pushed 10mo ago5 watchersCompare

[ Source](https://github.com/spiral/dumper)[ Packagist](https://packagist.org/packages/spiral/dumper)[ Docs](https://spiral.dev)[ GitHub Sponsors](https://github.com/sponsors/spiral)[ RSS](/packages/spiral-dumper/feed)WikiDiscussions 3.0 Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (58)Used By (20)

Spiral: Colorful variable dumper
================================

[](#spiral-colorful-variable-dumper)

[![Latest Stable Version](https://camo.githubusercontent.com/ca854d47e41af58b70a4978f1390166b21ad26ef674d9b42786661ca03fab745/68747470733a2f2f706f7365722e707567782e6f72672f73706972616c2f64756d7065722f76657273696f6e)](https://packagist.org/packages/spiral/dumper)[![Codecov](https://camo.githubusercontent.com/25d96af5191c5798032802a0f76c002d4039a1e8747338c627fc975d63d77b61/68747470733a2f2f636f6465636f762e696f2f67682f73706972616c2f64756d7065722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/spiral/dumper/)

With `spiral/dumper`, developers can easily inspect and analyze variable values during the development process, making it an indispensable tool for debugging and troubleshooting in web and CLI applications.

The component provides a wrapper over the `symfony/var-dumper` library. This component sends dumps directly to the browser within HTTP workers or to the `STDERR` output in other environments.

 [**Documentation**](https://spiral.dev/docs/basics-debug#spiral-dumper)

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

[](#installation)

Use [Composer](https://getcomposer.org/) to install the package:

```
composer require spiral/dumper
```

Usage
-----

[](#usage)

### Symfony VarDumper

[](#symfony-vardumper)

In your code:

```
dump($variable);
```

In an application using **RoadRunner**, you cannot use the `dd()` function. But the package provides an alternative `\rr\dd()` function. To use it, you need to add `Spiral\Debug\Middleware\DumperMiddleware` in the application, after `ErrorHandlerMiddleware`:

```
use Spiral\Bootloader\Http\RoutesBootloader as BaseRoutesBootloader;
use Spiral\Debug\Middleware\DumperMiddleware;
use Spiral\Http\Middleware\ErrorHandlerMiddleware;

final class RoutesBootloader extends BaseRoutesBootloader
{
    protected function globalMiddleware(): array
    {
        return [
            ErrorHandlerMiddleware::class,
            DumperMiddleware::class,
            // ...
        ];
    }

    // ...
}
```

### Buggregator

[](#buggregator)

The package provides a built-in integration with the [Buggregator](https://github.com/buggregator) service via [Trap](https://github.com/buggregator/trap) library.

1. Run a Buggregator server:
    - Full server using Docker: ```
        docker run --rm --pull always -p 127.0.0.1:8000:8000 -p 127.0.0.1:1025:1025 -p 127.0.0.1:9912:9912 -p 127.0.0.1:9913:9913 ghcr.io/buggregator/server:latest
        ```
    - Mini server using PHP: ```
        ./vendor/bin/trap
        ```
2. Use `trap()` function instead of `dump()` to send dumps to the Buggregator server: ```
    trap($variable);
    ```

License
-------

[](#license)

The MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information. Maintained by [SpiralScout](https://spiralscout.com).

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance45

Moderate activity, may be stable

Popularity49

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~167 days

Total

56

Last Release

318d ago

Major Versions

v1.1.7 → v2.6.12020-09-02

2.14.1 → 3.0.02023-05-12

PHP version history (5 changes)v1.0.0PHP ^7.1

v1.1.7PHP ^7.2

2.7.0PHP &gt;=7.2

2.10.1PHP &gt;=7.4

3.0.0PHP &gt;= 8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/796136?v=4)[Anton Tsitou](/maintainers/wolfy-j)[@wolfy-j](https://github.com/wolfy-j)

---

Top Contributors

[![SerafimArts](https://avatars.githubusercontent.com/u/2461257?v=4)](https://github.com/SerafimArts "SerafimArts (15 commits)")[![spiralbot](https://avatars.githubusercontent.com/u/100867204?v=4)](https://github.com/spiralbot "spiralbot (12 commits)")[![butschster](https://avatars.githubusercontent.com/u/773481?v=4)](https://github.com/butschster "butschster (10 commits)")[![msmakouz](https://avatars.githubusercontent.com/u/67324318?v=4)](https://github.com/msmakouz "msmakouz (7 commits)")[![roxblnfk](https://avatars.githubusercontent.com/u/4152481?v=4)](https://github.com/roxblnfk "roxblnfk (5 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (2 commits)")[![shoman4eg](https://avatars.githubusercontent.com/u/2788396?v=4)](https://github.com/shoman4eg "shoman4eg (1 commits)")

---

Tags

cli-dumperdumperphp7

###  Code Quality

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[symfony/debug-bundle

Provides a tight integration of the Symfony VarDumper component and the ServerLogCommand from MonologBridge into the Symfony full-stack framework

2.4k115.8M824](/packages/symfony-debug-bundle)[php-debugbar/php-debugbar

Debug bar in the browser for php application

4.4k21.3M40](/packages/php-debugbar-php-debugbar)[spatie/laravel-ignition

A beautiful error page for Laravel applications.

573146.7M471](/packages/spatie-laravel-ignition)[spatie/ignition

A beautiful error page for PHP applications.

511147.6M69](/packages/spatie-ignition)[yireo/magento2-whoops

Magento 2 module adding Whoops error handling

102703.5k](/packages/yireo-magento2-whoops)[laradumps/laradumps-core

LaraDumps is a friendly app designed to boost your Laravel / PHP coding and debugging experience.

261.2M13](/packages/laradumps-laradumps-core)

PHPackages © 2026

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