Search by

studioespresso / craft-dumper

janhenckens

Bringing symfony/VarDumper to Craft CMS

Package info

github.com/studioespresso/craft-dumper

Documentation

Type:craft-plugin

pkg:composer/studioespresso/craft-dumper

Fund package maintenance!

janhenckens

Statistics

Installs: 255 288

Dependents: 4

Suggesters: 0

Stars: 20

Open Issues: 1

6.0.0-beta.1 2026-11-22 07:47 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.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require studioespresso/craft-dumper
    
  3. 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.

Brought to you by Studio Espresso