studioespresso / craft-dumper
Bringing symfony/VarDumper to Craft CMS
Package info
github.com/studioespresso/craft-dumper
Type:craft-plugin
pkg:composer/studioespresso/craft-dumper
Fund package maintenance!
Requires
- php: >=8.5
- craftcms/cms: ^6.0.0-beta.2
Requires (Dev)
- larastan/larastan: ^3.12
- laravel/pint: ^1.27
- orchestra/testbench: ^11.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-22 07:49:22 UTC
README
Easy dump & "dump&die" functions for Twig.
Requirements
This plugin requires Craft CMS 6. Upgrading from Craft 5? See UPGRADE.md.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project -
Then tell Composer to load the plugin:
composer require studioespresso/craft-dumper -
In the Control Panel, go to Settings → Plugins and click the “Install” button for Dumper.
Using Dumper
Craft 6 already ships dump() and dd(). This plugin adds d() as a shorthand for dump() in your Twig templates:
{{ d(entry) }}
Or you can "dump and die"
{{ dd(entry) }}
Works on strings, arrays, object, etc. {{ d() }} without arguments dumps the whole template context.
d() also works in PHP.