inetis-ch / oc-dump-plugin

OctoberCMS plugin that adds the d() function to Twig for recursively dumping passed variables

Home Page:https://octobercms.com/plugin/inetis-dump

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

OctoberCMS plugin to improve debugging in Twig.

Adds the d() function to Twig to recursively dump provided variables in the same manner as Laravel's dd() function. Unlike Twig's native dump() function, d() displays all nested members of the provided variables.

Usage

Dumping a single variable

{{ d(myCollection) }}

Twig d() Collection demo

Dumping multiple variables

{{ d(var1, var2) }}

dump mulitvars

Author

inetis is a webdesign agency in Vufflens-la-Ville, Switzerland. We love coding and creating powerful apps and sites see our website.

About

OctoberCMS plugin that adds the d() function to Twig for recursively dumping passed variables

https://octobercms.com/plugin/inetis-dump

License:MIT License


Languages

Language:PHP 100.0%