PHPackages                             mass6/laravel-die-dump-array - 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. mass6/laravel-die-dump-array

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

mass6/laravel-die-dump-array
============================

Helper function to die and dump Laravel collection to their array representation

1.0.2(3y ago)0165MITPHPPHP ^7.4|^8.0

Since May 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mass6/laravel-die-dump-array)[ Packagist](https://packagist.org/packages/mass6/laravel-die-dump-array)[ Docs](https://github.com/mass6/laravel-die-dump-array)[ RSS](/packages/mass6-laravel-die-dump-array/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Laravel Die and Dump to Array (`dda`)
=====================================

[](#laravel-die-and-dump-to-array-dda)

[![Latest Version on Packagist](https://camo.githubusercontent.com/fdebbbf31c78d319f2468c2cf9a79c6e6b7c4faf5bbb9b2c3e95bad13f1da726/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617373362f6c61726176656c2d6469652d64756d702d61727261792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mass6/laravel-die-dump-array)[![Total Downloads](https://camo.githubusercontent.com/0dd8b9735e533052d13641bc473b72f56dc0e556484d446b01f69f9b79b519b9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d617373362f6c61726176656c2d6469652d64756d702d61727261792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mass6/laravel-die-dump-array)

Helper function to die and dump Laravel collection to their array representation. When you want to dump an Eloquent model, and only want the model's attributes, the `dda` function will call the `toArray()` method on the model, then die and dump. Works with any class that implements the `toArray` method.

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

[](#installation)

You can install the package via composer:

```
composer require mass6/laravel-die-dump-array
```

Usage
-----

[](#usage)

```
$user = User::find(1);
dda($user);

// Example output:
[
  'name' => 'Luca Brasi',
  'email' => 'luca.b@corleone.it'
]
```

### Testing

[](#testing)

```
composer test
```

### 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)

- [Sam Ciaramilaro](https://github.com/mass6)

License
-------

[](#license)

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

PHP Package Boilerplate
-----------------------

[](#php-package-boilerplate)

This package was generated using the [PHP Package Boilerplate](https://laravelpackageboilerplate.com) by [Beyond Code](http://beyondco.de/).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~4 days

Total

3

Last Release

1444d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a5c048ff68d39ba8b61baecd2df7e6fdc3b2a22619fa4beb5ef8244aa129fd8?d=identicon)[mass6](/maintainers/mass6)

---

Top Contributors

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

---

Tags

mass6laravel-die-dump-array

### Embed Badge

![Health badge](/badges/mass6-laravel-die-dump-array/health.svg)

```
[![Health](https://phpackages.com/badges/mass6-laravel-die-dump-array/health.svg)](https://phpackages.com/packages/mass6-laravel-die-dump-array)
```

###  Alternatives

[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k17](/packages/civicrm-civicrm-core)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

310107.9k1](/packages/cognesy-instructor-php)[ffi/var-dumper

List of symfony/var-dumper casters with FFI support

2010.7k4](/packages/ffi-var-dumper)[avency/neos-vardump

Neos VarDump Package

147.1k](/packages/avency-neos-vardump)

PHPackages © 2026

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