dBug Twig Extension
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/Sunra/TwigExtensions
README.md
composer.json

README.md

dBug Twig Extension

dBug - https://github.com/sunra/dBug very fine looking(maybe best) html var dumper for PHP.

This extension for Twig make available dBug in Twig templates, just like:

{{ some_variable|dbug }} or {{ some_variable|d }}

Installation


add to your composer.json

"require": {
        ...,
        "sunra/dbug-twig-extension": "0.2.1"
},

and run

composer.phar update

in Symfony

add to main config, or to specific environment:

# /app/config/config.yml
services:
    ...
    dbug.twig.extension:
        class: Sunra\TwigExtensions\DbugExtension
        tags:
            -  { name: twig.extension }			
    ...        

in Twig template

variable|d or variable|dbug