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

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

pverhaert/dump
==============

Dump variable as JSON or dd()

06PHP

Since May 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pverhaert/laravel_dump)[ Packagist](https://packagist.org/packages/pverhaert/dump)[ RSS](/packages/pverhaert-dump/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Dump variable as JSON or dump and die the variable
==================================================

[](#dump-variable-as-json-or-dump-and-die-the-variable)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5a5bf5e6d7fd2a9477f0b59f006f804f54c99161fe77a903eac1655492635da2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7076657268616572742f64756d702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pverhaert/dump)[![Total Downloads](https://camo.githubusercontent.com/5896d41bbb18a181b2cdd8d5507f181db6ab3bc6f01b26bf30d493dd5be0d7d1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7076657268616572742f64756d702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pverhaert/dump)

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

[](#installation)

You can install the package via composer:

```
composer require pverhaert/dump
```

Usage
-----

[](#usage)

```
// controller
public function index()
{
    $users = User::all();
    Dump::var($users);
    return view('allusers', compact('users'));
}
```

```
// view
All users

    @foreach($users as $user)
        {{ $user->name }}: {{ $user->email }}
    @endforeach

```

- `http://testdomain.test/allusers` : shows the regular view with all users
- `http://testdomain.test/allusers?json` : shows the json representation of `$users`
- `http://testdomain.test/allusers?dd` : dump and die the `$users`

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Patrick Verhaert](https://github.com/pverhaert)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![pverhaert](https://avatars.githubusercontent.com/u/6221502?v=4)](https://github.com/pverhaert "pverhaert (5 commits)")

### Embed Badge

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

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

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M918](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[jokkedk/webgrind

Webgrind is a Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick'n'dirty optimizations it does the job.

3.3k193.0k](/packages/jokkedk-webgrind)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)[beyondcode/helo-laravel

HELO Laravel debug helper

90360.1k](/packages/beyondcode-helo-laravel)

PHPackages © 2026

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