nmb / twig-extensions-bundle
Add some functions and filters to twig
Package info
github.com/Badji/NmbTwigExtensionsBundle
Type:symfony-bundle
pkg:composer/nmb/twig-extensions-bundle
1.0.0
2013-08-05 20:53 UTC
Requires
- php: >=5.3.2
- symfony/symfony: >=2.0,<=2.4.0
This package is not auto-updated.
Last update: 2026-03-23 23:09:26 UTC
README
Some Twig functions and filters i wanna use on my symfony projects
Installation
Add NmbTwigExtensionsBundle to your composer.json
{ "require": { "nmb/twig-extensions-bundle": "dev-master" } }
Download the bundle by runung the command
$php composer.phar update nmb/twig-extensions-bundle
Add the bundle to your app/AppKernel.php
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Nmb\TwigExtensionsBundle\NmbTwigExtensionsBundle(), ); }
Usage
In your twig template
{{ getParameter('my_parameter') }}