sunra / dbug-twig-extension
Enable for Twig dBug class as filter (https://github.com/sunra/dBug)
Installs: 1 780
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Type:twig-extension
Requires
- php: >=5.3.2
- sunra/dbug: >=0.2.1
- twig/twig: >=1.12
This package is auto-updated.
Last update: 2024-11-14 04:11:26 UTC
README
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