2017 © Pedro Peláez
 

library twig-i18n-extension

Twig i18n extension

image

uam/twig-i18n-extension

Twig i18n extension

  • Monday, January 23, 2017
  • by opichon
  • Repository
  • 1 Watchers
  • 1 Stars
  • 20,802 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 24 Versions
  • 1 % Grown

The README.md

UAM Twig I18n Extension

, (*1)

The uam/twig-i18n-extension package provides a Twig extension for internationalizing dates, numbers, etc., (*2)

Installation

Add the package to your project's composer.json:, (*3)

{
    "require": {
        "uam/twig-i18n-extension": "dev-master",
        ...
    }
}

Run composer install or composer update to install the package:, (*4)

``` bash $ php composer.phar update, (*5)


Usage ----- Add the extension to the Twig_Environment: ``` php use UAM\Twig\Extension\I18n\I18nExtension; $twig = new Twig_Environment(...); $twig->addExtension(new I18nExtension());

Symfony2

To use the extension in a symfony2 app, use the built-in UAMTwigI18nBundle:, (*6)

Enable the bundle in your app's Appkernel:, (*7)

``` php, (*8)

app/AppKernel.php

class AppKernel extends Kernel { public function registerBundles() { $bundles = array( ... new UAM\Twig\Extension\I18n\Bridge\Symfony\UAMTwigI18nBundle(), ... ); ```, (*9)

The bundle will automaticallty register the UAM\Twig\Extension\I18nExtension as a twig extension., (*10)

The Versions

23/01 2017
26/09 2016

dev-duration-methods

dev-duration-methods https://github.com/united-asian/twig-i18n-extension

Twig i18n extension

  Sources   Download

MIT

The Requires

 

The Development Requires

by Olivier Pichon

twig i18n

07/09 2016
07/09 2016
21/07 2016
01/08 2015
01/08 2015
04/07 2015
04/07 2015
03/07 2015

0.1.5

0.1.5.0 http://gitlab.united-asian.com/twig/i18n-extension

Twig i18n extension

  Sources   Download

MIT

The Requires

 

The Development Requires

by Olivier Pichon

twig i18n

03/07 2015

0.1.4

0.1.4.0 http://gitlab.united-asian.com/twig/i18n-extension

Twig i18n extension

  Sources   Download

MIT

The Requires

 

The Development Requires

by Olivier Pichon

twig i18n

30/05 2015

0.1.3

0.1.3.0 http://gitlab.united-asian.com/uam-private/UAMUserBundle

Twig i18n extension

  Sources   Download

MIT

The Requires

 

by Olivier Pichon

twig i18n

30/05 2015

0.1.2

0.1.2.0 http://gitlab.united-asian.com/uam-private/UAMUserBundle

Twig i18n extension

  Sources   Download

MIT

The Requires

 

by Olivier Pichon

twig i18n

30/05 2015

0.1.1

0.1.1.0 http://gitlab.united-asian.com/uam-private/UAMUserBundle

Twig i18n extension

  Sources   Download

MIT

The Requires

 

by Olivier Pichon

twig i18n