24hoursmedia/twig-extension-bundle

Symfony 2 twig extension bundle

v0.2.3.2 2016-12-09 16:13 UTC

This package is not auto-updated.

Last update: 2024-06-06 06:08:09 UTC


README

symfony twig extensions bundle

installation

Through composer in your symfony project:

composer require 24hoursmedia/twig-extension-bundle

Then, register the bundle in your AppKernel by adding the following line:

new T4\Bundle\TwigExtensionBundle\T4TwigExtensionBundle()

twig extensions

google analytics filters

  • filter to add google campaign information to links

read ga_extension docs

validator filters

  • apply symfony validator on data and return errors as an array for use in twig

read validator_extension docs