Bringing larapack/dd to your Craft3 website
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
CHANGELOG.md
LICENSE.md
README.md
composer.json

README.md

Dumper plugin for Craft CMS 3.x

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