Download the PHP package rdrenth/twig-extension-bundle without Composer
On this page you can find all versions of the php package rdrenth/twig-extension-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rdrenth/twig-extension-bundle
More information about rdrenth/twig-extension-bundle
Files in rdrenth/twig-extension-bundle
Package twig-extension-bundle
Short Description Symfony bundle with useful twig extensions
License MIT
Homepage https://github.com/rdrenth/twig-extension-bundle
Informations about the package twig-extension-bundle
RdrenthTwigExtensionBundle
About
This is a Symfony2 Bundle that provides you with some extensions to Twig!
Twig extensions
Stringy
This extension provides the following filters (provided by the Stringy package).
For more information about each filter, please check the links.
ascii
camelize
dasherize
delimit
humanize
slugify
titleize
underscored
lcfirst
ucfirst
Installation
Step 1: Install RdrenthTwigExtensionBundle using Composer
Step 2: Enable the bundle
Step 3: Configure your config.yml
file
By default the filters are disabled, enable the filters you want to use like this:
It is also possible to modify the filter name that is being used in Twig:
Or provide extra filters which are not available by default from the Stringy package (the method has to exist in the Stringy class):
License
This bundle is under the MIT license. See the complete license in the bundle:
Resources/meta/LICENSE
All versions of twig-extension-bundle with dependencies
symfony/framework-bundle Version ~2.3|~3.0
twig/twig Version ~1.20|~2.0
danielstjules/stringy Version ^2.3