newism / nsm-twig-extensions-bundle
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
This package is auto-updated.
Last update: 2019-02-28 14:45:46 UTC
README
** Not stable **
Twig Extensions used in Newism projects.
This bundle should be used in conjunction with Symfony2.
Installation
Step 1: Download NSMTwigExtensionsBundle using composer
Add NSMTwigExtensionsBundle in your composer.json:
{ "require": { "newism/nsm-twig-extensions-bundle": "*" } }
Now tell composer to download the bundle by running the command:
$ php composer.phar update newism/twig-extensions-bundle
Composer will install the bundle to your project's vendor/bundles/NSM
directory.
Add NSMTwigExtensionsBundle to your application kernel
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new NSM\Bundle\NSMTwigExtensionsBundle\NSMTwigExtensionsBundle() ); }
Make the Twig extensions available by updating your configuration
# app/config/config.yml nsm_twig_extensions: ~