PHPackages                             symfocode/twig-i18n - 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. symfocode/twig-i18n

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

symfocode/twig-i18n
===================

Twig internationalization tools for Symfony2

v0.2.3(11y ago)038MITPHPPHP &gt;=5.3.3

Since Nov 8Pushed 11y ago1 watchersCompare

[ Source](https://github.com/symfocode/twig-i18n)[ Packagist](https://packagist.org/packages/symfocode/twig-i18n)[ RSS](/packages/symfocode-twig-i18n/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (9)Used By (0)

Symfocode/Twig-i18n
===================

[](#symfocodetwig-i18n)

[![SensioLabsInsight](https://camo.githubusercontent.com/0a219a360b3d526901a7433517e55a339379c0a814951ef1af6ed393a08bf473/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f61323330333365372d396161392d343333652d383630312d3133353131333632666338632f6d696e692e706e67)](https://insight.sensiolabs.com/projects/a23033e7-9aa9-433e-8601-13511362fc8c) [![Latest Stable Version](https://camo.githubusercontent.com/29c7a949f326e2b3887f9356aac6ff56a4d9bb948a0433e8b1261d0af5c4d134/68747470733a2f2f706f7365722e707567782e6f72672f73796d666f636f64652f747769672d6931386e2f762f737461626c652e737667)](https://packagist.org/packages/symfocode/twig-i18n) [![Latest Unstable Version](https://camo.githubusercontent.com/f4739ad5dd37c0eb7b978655cdf6de64266144bd1ffcc2c970246fadcf4372aa/68747470733a2f2f706f7365722e707567782e6f72672f73796d666f636f64652f747769672d6931386e2f762f756e737461626c652e737667)](https://packagist.org/packages/symfocode/twig-i18n) [![Total Downloads](https://camo.githubusercontent.com/a8d82a9e99883fa02eb27daad6c58494e024881635aa8eb37004cb3adf0c5d67/68747470733a2f2f706f7365722e707567782e6f72672f73796d666f636f64652f747769672d6931386e2f646f776e6c6f6164732e737667)](https://packagist.org/packages/symfocode/twig-i18n) [![License](https://camo.githubusercontent.com/eb0a09229b18351bd45cad336b8f5b1332ac41333513ba58e9847567c239cc24/68747470733a2f2f706f7365722e707567782e6f72672f73796d666f636f64652f747769672d6931386e2f6c6963656e73652e737667)](https://packagist.org/packages/symfocode/twig-i18n)

Internationalization tools based on [Symfony2](http://symfony.com) components and [Twig](http://twig.sensiolabs.org).

Twig-i18n works with PHP 5.3.3 or later.

Features
--------

[](#features)

- The **LinkI18nExtension** makes it easy to create locale links. [Learn more.](https://github.com/symfocode/twig-i18n/blob/master/doc/links.md "LinkI18nExtension")

```

        Home

        Page

        Some page (default locale)

    {% for locale, params in app.system_locales %}

            {{ params.abbr }}

    {% endfor %}

```

- The **DateI18nExtension** makes it easy to create custom date formats. [Learn more.](https://github.com/symfocode/twig-i18n/blob/master/doc/dates.md "DateI18nExtension")

```
{{ datetime|localedate('date_time') }}
{{ datetime|localedate('short_date') }}
{{ datetime|localedate('medium_date') }}

{{ datetime|locale_date('long_date') }}
{{ datetime|locale_date('full_date') }}
{{ datetime|locale_date('some_format') }}
```

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

[](#installation)

The recommended way to install Silex-i18n is [through composer](http://getcomposer.org). Just create a `composer.json` file and run the `php composer.phar install` command to install it:

```
{
    "require": {
        "symfocode/twig-i18n": "~0.2"
    }
}
```

License
-------

[](#license)

Twig-i18n is licensed under the MIT license.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~8 days

Recently: every ~14 days

Total

8

Last Release

4149d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4481981?v=4)[Yuriy Davletshin](/maintainers/davletshin)[@davletshin](https://github.com/davletshin)

---

Top Contributors

[![davletshin](https://avatars.githubusercontent.com/u/4481981?v=4)](https://github.com/davletshin "davletshin (17 commits)")

---

Tags

symfonylocalizationinternationalizationi18nl10ntwiglocale

### Embed Badge

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

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

###  Alternatives

[aplus/language

Aplus Framework Language Library

2351.7M15](/packages/aplus-language)[delight-im/i18n

Internationalization and localization for PHP

625.2k3](/packages/delight-im-i18n)[jrmajor/fluent

Fluent localization system for PHP

2716.9k5](/packages/jrmajor-fluent)[jrmajor/laravel-fluent

Fluent translations for Laravel

208.4k](/packages/jrmajor-laravel-fluent)[tigrov/yii2-country

Country data for Yii2 using Intl extension and more.

151.1k](/packages/tigrov-yii2-country)

PHPackages © 2026

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