PHPackages                             joeyrush/better-dd - 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. joeyrush/better-dd

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

joeyrush/better-dd
==================

Die and dump with line number and file path

1.4(3y ago)522.4k↑381.8%[1 issues](https://github.com/joeyrush/better-dd/issues)MITPHPPHP ^7.0 || ^8.0CI failing

Since Mar 13Pushed 3y ago1 watchersCompare

[ Source](https://github.com/joeyrush/better-dd)[ Packagist](https://packagist.org/packages/joeyrush/better-dd)[ Docs](https://github.com/joeyrush/better-dd)[ RSS](/packages/joeyrush-better-dd/feed)WikiDiscussions master Synced 3w ago

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

Better DD For Laravel
=====================

[](#better-dd-for-laravel)

😅 Replace your `dump` / `dd` calls with `dumpl` / `ddl` to get the filepath and line number included. A simple but **much needed** feature! Works in both the browser and terminal.

> Bonus: You can use the semantic history feature of iTerm to Command+Click the line number output in the terminal (You can customize which editor is chosen to open files via iTerm-&gt;Preferences-&gt;Profiles-&gt;Advanced-&gt;Semantic History)

[![](https://camo.githubusercontent.com/aa7c94d45e92a4a64c5c9d08cf484064e4694de0d7aba47ad32505bc91884d08/68747470733a2f2f692e696d6775722e636f6d2f773335536c69492e676966)](https://camo.githubusercontent.com/aa7c94d45e92a4a64c5c9d08cf484064e4694de0d7aba47ad32505bc91884d08/68747470733a2f2f692e696d6775722e636f6d2f773335536c69492e676966)

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

[](#requirements)

- Any version of laravel

Getting Started
---------------

[](#getting-started)

You can install the package via composer:

```
composer require joeyrush/better-dd

```

...and that's all!

Usage
-----

[](#usage)

Exactly the same as `dd`:

```
dumpl($var1, $var2, $var3...);
ddl($var1, $var2, $var3...);
```

Configuration: Output Truncation
--------------------------------

[](#configuration-output-truncation)

When using the dump helpers inside the terminal, often output can be difficult to read due to the size. Sometimes you surpass your terminals buffer length and lose some data. For that reason, we've provided some truncation options via a config.

> Disclaimer: This feature only applies to terminal output because there is very little point in truncating output in the browser because they can be collapsed interactively.

First publish the config with artisan:

```
php artisan vendor:publish --provider=JoeyRush\\BetterDD\\BetterDDServiceProvider
```

The following configuration are now available to customize to your needs (see `config/better-dd.php` after running the publish command)

```
/**
 * The following configuration values apply to any dumpl($var) / ddl($var) function calls.
 */
return [
    /**
     * Truncate longs strings to a specified number of characters
     * Applies to all strings: i.e. actual strings and strings within variables etc.
     * Use -1 to disable truncation
     */
    'max_string_length' => -1,

    /**
     * Maximum depth of output
     * e.g. 2 will only show arrays within arrays. Anything deeper will get truncated to [...n]
     * where n represents the number of elements cut-off
     */
    'max_depth' => 20,
    'max_items_per_depth' => -1
];
```

Tests
-----

[](#tests)

After a composer install, run `composer test`

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 77.8% 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 ~314 days

Total

5

Last Release

1400d ago

PHP version history (2 changes)1.0PHP ^7.0

1.2PHP ^7.0 || ^8.0

### Community

Maintainers

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

---

Top Contributors

[![joeyrush](https://avatars.githubusercontent.com/u/17975028?v=4)](https://github.com/joeyrush "joeyrush (14 commits)")[![Nutickets](https://avatars.githubusercontent.com/u/57409655?v=4)](https://github.com/Nutickets "Nutickets (4 commits)")

---

Tags

better-dd

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/joeyrush-better-dd/health.svg)

```
[![Health](https://phpackages.com/badges/joeyrush-better-dd/health.svg)](https://phpackages.com/packages/joeyrush-better-dd)
```

###  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.4k121.7M976](/packages/symfony-debug-bundle)[symfony/error-handler

Provides tools to manage errors and ease debugging PHP code

2.7k682.0M762](/packages/symfony-error-handler)[php-debugbar/php-debugbar

Debug bar in the browser for php application

4.4k26.7M61](/packages/php-debugbar-php-debugbar)[spatie/laravel-ignition

A beautiful error page for Laravel applications.

576155.2M539](/packages/spatie-laravel-ignition)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[spatie/ignition

A beautiful error page for PHP applications.

513156.2M79](/packages/spatie-ignition)

PHPackages © 2026

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