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 1mo ago

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 75% 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

3402d 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

[twig/intl-extra

A Twig extension for Intl

36763.2M221](/packages/twig-intl-extra)[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91492.0M315](/packages/twig-extra-bundle)[rcrowe/twigbridge

Adds the power of Twig to Laravel

9105.9M50](/packages/rcrowe-twigbridge)[twig/string-extra

A Twig extension for Symfony String

22046.0M133](/packages/twig-string-extra)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

22918.5M55](/packages/twig-cssinliner-extra)[symfony/ux-twig-component

Twig components for Symfony

21914.8M162](/packages/symfony-ux-twig-component)

PHPackages © 2026

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