mark-wff / craft-var-dumper
Adds Symfony Var-Dumper to Craft CMS
Installs: 2 776
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 3
Open Issues: 0
Type:craft-plugin
Requires
- craftcms/cms: ^3.0.0-RC1|^4.0
- symfony/var-dumper: *
This package is auto-updated.
Last update: 2025-03-01 00:21:39 UTC
README
Activates the Symfony VarDumper in Twig. The VarDumper component provides mechanisms for extracting the state out of any PHP variables. Built on top, it provides a better dump() function that you can use instead of var_dump. With a nice Frontend-View.
Requirements
This plugin requires Craft CMS 3.0.0-beta.23 or later.
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 mark-wff/craft-var-dumper
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Craft-Var-Dumper.
Using Craft-Var-Dumper
some Twig-Demo's:
// dump everything.
{{ dump() }}
// dump Variable.
{{ dump(myVariable) }}
// dump multiple Variables.
{{ dump(myVariable, mySecondVariable) }}
Craft-Var-Dumper Roadmap
Brought to you by Mark Wolff