PHPackages                             uam/twig-i18n-extension - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. uam/twig-i18n-extension

ActiveLibrary[Templating &amp; Views](/categories/templating)

uam/twig-i18n-extension
=======================

Twig i18n extension

0.2.9(9y ago)123.0k2MITPHP

Since May 30Pushed 9y ago1 watchersCompare

[ Source](https://github.com/united-asian/twig-i18n-extension)[ Packagist](https://packagist.org/packages/uam/twig-i18n-extension)[ Docs](https://github.com/united-asian/twig-i18n-extension)[ RSS](/packages/uam-twig-i18n-extension/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (24)Used By (2)

UAM Twig I18n Extension
=======================

[](#uam-twig-i18n-extension)

[![](https://camo.githubusercontent.com/0fc798223ac200b258436bebe7840436b2300bfcee6757384221744304a2e5b4/68747470733a2f2f7472617669732d63692e6f72672f756e697465642d617369616e2f747769672d6931386e2d657874656e73696f6e2e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/0fc798223ac200b258436bebe7840436b2300bfcee6757384221744304a2e5b4/68747470733a2f2f7472617669732d63692e6f72672f756e697465642d617369616e2f747769672d6931386e2d657874656e73696f6e2e7376673f6272616e63683d6d6173746572)

The `uam/twig-i18n-extension` package provides a Twig extension for internationalizing dates, numbers, etc.

Installation
------------

[](#installation)

Add the package to your project's `composer.json`:

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

Run `composer install` or `composer update` to install the package:

```
$ php composer.phar update
```

Usage
-----

[](#usage)

Add the extension to the Twig\_Environment:

```
use UAM\Twig\Extension\I18n\I18nExtension;

$twig = new Twig_Environment(...);

$twig->addExtension(new I18nExtension());
```

Symfony2
--------

[](#symfony2)

To use the extension in a symfony2 app, use the built-in `UAMTwigI18nBundle`:

Enable the bundle in your app's Appkernel:

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

The bundle will automaticallty register the `UAM\Twig\Extension\I18nExtension` as a twig extension.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 50.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~28 days

Total

22

Last Release

3450d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/61710b3e2bdf8cc378cb14f7e9c3d4fa753738373565270820a7be21c89f6d69?d=identicon)[opichon](/maintainers/opichon)

---

Top Contributors

[![opichon](https://avatars.githubusercontent.com/u/203745?v=4)](https://github.com/opichon "opichon (89 commits)")[![DeepakAryal](https://avatars.githubusercontent.com/u/17777925?v=4)](https://github.com/DeepakAryal "DeepakAryal (68 commits)")[![rabinghimire](https://avatars.githubusercontent.com/u/11976708?v=4)](https://github.com/rabinghimire "rabinghimire (19 commits)")

---

Tags

i18ntwig

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/uam-twig-i18n-extension/health.svg)

```
[![Health](https://phpackages.com/badges/uam-twig-i18n-extension/health.svg)](https://phpackages.com/packages/uam-twig-i18n-extension)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M387](/packages/easycorp-easyadmin-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M737](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M577](/packages/shopware-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M204](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k17.8k](/packages/prestashop-prestashop)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
