studioespresso / craft-dumper
Bringing symfony/VarDumper to Craft CMS
Fund package maintenance!
janhenckens
Installs: 230 864
Dependents: 4
Suggesters: 0
Security: 0
Stars: 21
Watchers: 4
Forks: 2
Open Issues: 1
Type:craft-plugin
Requires
- craftcms/cms: ^4.0.0|^5.0.0-alpha
Requires (Dev)
- craftcms/ecs: dev-main
- craftcms/phpstan: dev-main
This package is auto-updated.
Last update: 2024-11-21 16:32:04 UTC
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.
-
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
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.