studioespresso/craft-dumper

Bringing larapack/dd to Craft 3

2.0.0 2019-06-20 10:52 UTC

This package is auto-updated.

Last update: 2020-03-20 13:23:03 UTC


README

Bringing larapack/dd to Craft 3

Requirements

This plugin requires Craft CMS 3.0.0-beta.29 or later.

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 larapack/dd 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