PHPackages                             kigamba/laravel-artisan-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. [CLI &amp; Console](/categories/cli)
4. /
5. kigamba/laravel-artisan-dd

ActiveLibrary[CLI &amp; Console](/categories/cli)

kigamba/laravel-artisan-dd
==========================

Run dd from your commandline &gt; Supports PHP 5

v1.2.1(8y ago)013MITPHPPHP &gt;=5.0

Since Aug 3Pushed 8y agoCompare

[ Source](https://github.com/Kigamba/laravel-artisan-dd)[ Packagist](https://packagist.org/packages/kigamba/laravel-artisan-dd)[ Docs](https://github.com/Kigamba/laravel-artisan-dd)[ RSS](/packages/kigamba-laravel-artisan-dd/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (5)Versions (5)Used By (0)

Quickly dd anything from the commandline
========================================

[](#quickly-dd-anything-from-the-commandline)

This package is a fork from the original spatie/laravle-artisan-dd package.

This package supports PHP 5 while the original package supports PHP 7

[![Latest Version on Packagist](https://camo.githubusercontent.com/b1ddbf2f0c308ac874156e6b0f296dd0b979aacb990002833f0c29b04b308e41/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370617469652f6c61726176656c2d6172746973616e2d64642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/laravel-artisan-dd)[![Build Status](https://camo.githubusercontent.com/bd265ab477acf006b9f9070fa64c86775182e566b0b4fca89c83cdf594ffa00e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7370617469652f6c61726176656c2d6172746973616e2d64642f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/spatie/laravel-artisan-dd)[![SensioLabsInsight](https://camo.githubusercontent.com/5c16631d9251c24aed82483439eed63cf0d6bbdc6299bbef70e3fbfd86cdc21d/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f38333538643938342d663965392d346465322d613639652d6236626435333639363934622e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/8358d984-f9e9-4de2-a69e-b6bd5369694b)[![StyleCI](https://camo.githubusercontent.com/2c566aec6f21ddcf1329c08d2af67b495c7792f014112a2c511bb14a35c1c684/68747470733a2f2f7374796c6563692e696f2f7265706f732f39313130373030312f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/91107001)[![Quality Score](https://camo.githubusercontent.com/dbb4dc8927fe29b0235169ca8510bd83e61f69dcea0066804c734dda22981906/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7370617469652f6c61726176656c2d6172746973616e2d64642e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/spatie/laravel-artisan-dd)[![Total Downloads](https://camo.githubusercontent.com/2c1e6511c8f54621ef5634286887c11d9508ce90ac71f4540e8c5c271ca273e7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370617469652f6c61726176656c2d6172746973616e2d64642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/laravel-artisan-dd)

[Laravel's tinker command](https://github.com/laravel/tinker) allows to run any code you want as if you are inside your Laravel app. But if you want to run a single line of code if can be a bit bothersome. You must start up tinker, type the code, press enter, and quit tinker.

This package contains an Artisan command to dd anything from the commandline. No need to start and quit tinker anymore.

```
# dumps the first user
php artisan dd "User::first()"
```

Postcardware
------------

[](#postcardware)

You're free to use this package (it's [MIT-licensed](LICENSE.md)), but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: Spatie, Samberstraat 69D, 2060 Antwerp, Belgium.

We publish all received postcards [on our company website](https://spatie.be/en/opensource/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require kigamba/laravel-artisan-dd
```

You must register the `Kigamba\ArtisanDd\DdCommand` in the console kernel.

```
// app/Console/Kernel.php

protected $commands = [
    ...
    \Kigamba\ArtisanDd\DdCommand::class,
];
```

Usage
-----

[](#usage)

You can pass any code you want to execute as the first argument. The result will be dumped to the screen.

```
php artisan dd "bcrypt('secret')";
```

Multiple pieces of code can be dumped in one go:

```
php artisan dd "bcrypt('secret')" "bcrypt('another-secret')";
```

Support for short class names
-----------------------------

[](#support-for-short-class-names)

Under the hood registers short class names using our [laravel-tinker-tools](https://github.com/kigamba/laravel-tinker-tools) package. So instead of

```
php artisan dd "\App\Models\NewsItem::first()";
```

you can do this:

```
php artisan dd "NewsItem::first()";
```

A word to the wise
------------------

[](#a-word-to-the-wise)

This command can run arbitrary code by using PHP's `eval`. Be aware that this can be potentially dangerous. By default the command will only run in a `local` environment. You can make it run in other environments by setting an `ALLOW_DD_COMMAND` enviroment variable to `true`.

Changelog
---------

[](#changelog)

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

Testing
-------

[](#testing)

```
$ composer test
```

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)

- [Freek Van der Herten](https://github.com/freekmurze)
- [Ephraim Kigamba](https://github.com/Kigamba)
- [All Contributors](../../contributors)

Idea: [Sebastian De Deyne](https://github.com/sebastiandedeyne)

About Spatie
------------

[](#about-spatie)

Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects [on our website](https://spatie.be/opensource).

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

3

Last Release

3192d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b5ea78c38b96d704b8ce3760dd7548c12fd717aaf3693597d0b9df2c146a22e?d=identicon)[Kigamba](/maintainers/Kigamba)

---

Tags

artisanlaravel-artisan-ddkigamba

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kigamba-laravel-artisan-dd/health.svg)

```
[![Health](https://phpackages.com/badges/kigamba-laravel-artisan-dd/health.svg)](https://phpackages.com/packages/kigamba-laravel-artisan-dd)
```

###  Alternatives

[nunomaduro/laravel-console-menu

Laravel Console Menu is an output method for your Laravel/Laravel Zero commands.

815412.0k48](/packages/nunomaduro-laravel-console-menu)[nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2582.1M11](/packages/nunomaduro-laravel-console-task)[nunomaduro/laravel-console-summary

A Beautiful Laravel Console Summary for your Laravel/Laravel Zero commands.

662.0M3](/packages/nunomaduro-laravel-console-summary)[hmazter/laravel-schedule-list

Laravel package to add command to list all scheduled artisan commands

94432.8k](/packages/hmazter-laravel-schedule-list)[nunomaduro/laravel-console-dusk

Laravel Console Dusk allows the usage of Laravel Dusk in Laravel/Laravel Zero artisan commands.

16255.4k7](/packages/nunomaduro-laravel-console-dusk)[rahul900day/laravel-console-spinner

Laravel Console Spinner is a spinner output for Laravel command line.

76125.4k1](/packages/rahul900day-laravel-console-spinner)

PHPackages © 2026

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