Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Artisan Dd Laravel Package

spatie/laravel-artisan-dd

Run one-off Laravel code from the command line without opening Tinker. Use php artisan dd "User::first()" to execute expressions and dump results. Supports multiple expressions and short class names for quick debugging and inspection.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Developer Productivity: Accelerates debugging workflows by eliminating the need to launch Tinker for one-off dd() calls, reducing context-switching and setup time.
  • Roadmap Efficiency: Enables faster iteration for backend teams by streamlining debugging during feature development, especially in CI/CD pipelines or local testing.
  • Build vs. Buy: A lightweight, open-source alternative to custom scripts or paid tools for CLI-based debugging, reducing technical debt.
  • Use Cases:
    • Debugging API responses or service layers without booting a full Laravel environment.
    • Quick validation of Eloquent queries, model data, or configuration values during sprints.
    • Onboarding new developers by simplifying ad-hoc debugging in shared environments.

When to Consider This Package

  • Adopt if:
    • Your team frequently debugs Laravel applications via CLI (e.g., CI/CD, serverless, or headless environments).
    • You prioritize reducing friction in debugging workflows (e.g., microservices, APIs, or scheduled jobs).
    • Your stack already uses Laravel Artisan and you want to avoid reinventing CLI debugging tools.
  • Look elsewhere if:
    • Your team relies heavily on IDE debugging tools (e.g., Xdebug) or GUI-based Laravel interfaces (e.g., Laravel Forge, Valet).
    • You need advanced features like persistent debugging sessions or interactive REPLs (e.g., Laravel Tinker with history).
    • Your project uses non-Laravel PHP frameworks where dd() isn’t a standard practice.

How to Pitch It (Stakeholders)

For Executives: "This package cuts debugging time in half by letting backend engineers run dd() directly from the command line—no need to launch Tinker. For teams shipping APIs or microservices, this means faster iterations and fewer blocked sprints. It’s a 5-minute setup with a 10x ROI in developer velocity."

For Engineering: "Imagine debugging a failed job or API endpoint without firing up Tinker. Just run php artisan dd "Model::where(...)->get()" and see the dump instantly. It’s like var_dump() but for Laravel, and it integrates seamlessly with our existing Artisan workflows. Zero maintenance, MIT-licensed, and backed by Spatie’s reliable open-source ecosystem."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport