studioespresso/craft-dumper

Bringing symfony/VarDumper to Craft CMS

Maintainers

πŸ‘ janhenckens

Package info

github.com/studioespresso/craft-dumper

Documentation

Type:craft-plugin

pkg:composer/studioespresso/craft-dumper

Fund package maintenance!

janhenckens

Statistics

Installs: 250 235

Dependents: 4

Suggesters: 0

Stars: 20

Open Issues: 1

5.0.1 2024-02-21 14:48 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 3f5c1cfc44cffcefebe9c9b83e94c40b5b75dbc4

cmsdumperCraftcraftcmscraft-plugin


README

Easy dump & "dump&die" functions for Twig.

Requirements

This plugin works with Craft CMS 3, 4 or 5.

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

When you install the plugin, you'll be able to use Symfony\VarDumper in your Twig templates like this:

{{ d(entry) }}

Or you can "dump and die"

{{ dd(entry) }}

Works on strings, arrays, object, etc.

Brought to you by Studio Espresso