2017 © Pedro Peláez
 

symfony-bundle twig-extensions-bundle

Provides some Twig extensions for your project.

image

mapado/twig-extensions-bundle

Provides some Twig extensions for your project.

  • Thursday, September 18, 2014
  • by jdeniau
  • Repository
  • 11 Watchers
  • 0 Stars
  • 18,872 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

Mapado TwigExtensions Bundle

MapadoTwigExtensionsBundle is just a collection of useful Twig extensions., (*1)

This bundle should be used in conjunction with Symfony2., (*2)

ParseUrl Filter

Provides an parse_url filter, to parse an url., (*3)

A call to parse_url is made., (*4)

{{ someUrl | parse_url('host') }}

Will return the host of someUrl (or false if not found)., (*5)

Installation

Get the bundle

Add this in your composer.json, (*6)

{
    "require": {
        "mapado/twig-extensions-bundle": "dev-master"
    }
}

and then run, (*7)

php composer.phar update

or, (*8)

composer update

if you installed composer globally., (*9)

Enable the bundle

// in app/AppKernel.php
public function registerBundles() {
    $bundles = array(
        // ...
        new Mapado\TwigExtensionsBundle\MapadoTwigExtensionsBundle(),
    );
    // ...
}

The Versions

18/09 2014

dev-master

9999999-dev

Provides some Twig extensions for your project.

  Sources   Download

MIT

The Requires

 

twig symfony twig extensions mapado

18/09 2014

v1.0.0

1.0.0.0

Provides some Twig extensions for your project.

  Sources   Download

MIT

The Requires

 

twig symfony twig extensions mapado