nmb / twig-extensions-bundle
Add some functions and filters to twig
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.2
- symfony/symfony: >=2.0,<=2.4.0
This package is not auto-updated.
Last update: 2025-02-24 17:37:35 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') }}