PHPackages                             wdes/php-i18n-l10n - 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. wdes/php-i18n-l10n

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

wdes/php-i18n-l10n
==================

PHP library/api to provide Internationalisation and Localisation

v4.2.0(6mo ago)491.5k↑71.2%41MPL-2.0PHPPHP ^8.1CI passing

Since Jun 8Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/wdes/php-I18n-L10n)[ Packagist](https://packagist.org/packages/wdes/php-i18n-l10n)[ Docs](https://github.com/wdes/php-I18n-l10n)[ RSS](/packages/wdes-php-i18n-l10n/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (5)Versions (8)Used By (1)

php-I18n-L10n
=============

[](#php-i18n-l10n)

PHP library/api to provide Internationalisation and Localisation

[![Codacy Badge](https://camo.githubusercontent.com/a9505c097c0a0e5f54be463cbbd35045f1c4d41c29d63fbc5e94ebc6ba3e896e/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3263323264366634303564313433643862363564306531643837356464373031)](https://www.codacy.com/gh/wdes/php-I18n-L10n/dashboard?utm_source=github.com&utm_medium=referral&utm_content=wdes/php-I18n-L10n&utm_campaign=Badge_Grade)[![Lint and analyse files](https://github.com/wdes/php-I18n-L10n/actions/workflows/lint-and-analyse.yml/badge.svg)](https://github.com/wdes/php-I18n-L10n/actions/workflows/lint-and-analyse.yml)[![Run tests](https://github.com/wdes/php-I18n-L10n/actions/workflows/tests.yml/badge.svg)](https://github.com/wdes/php-I18n-L10n/actions/workflows/tests.yml)[![codecov](https://camo.githubusercontent.com/f867938810aced48d4df87c8ed669788ce12d7bfa963659ed2bda511c65f4ef4/68747470733a2f2f636f6465636f762e696f2f6769746875622f776465732f7068702d4931386e2d4c31306e2f67726170682f62616467652e7376673f746f6b656e3d49437842363967474663)](https://codecov.io/github/wdes/php-I18n-L10n)[![FOSSA Status](https://camo.githubusercontent.com/0c849f9555a219d6ccfd25525d15d5b64f61fe3e00e0bf1289bf6db1068bf16d/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d253246776465732532467068702d4931386e2d4c31306e2e7376673f747970653d736869656c64)](https://app.fossa.io/projects/git%2Bgithub.com%2Fwdes%2Fphp-I18n-L10n?ref=badge_shield)[![Packagist](https://camo.githubusercontent.com/873d09563e7aa61a9c54fca6fa03f7a5291f948ef749cd3349ec1b90340daae4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f776465732f7068702d4931386e2d4c31306e2e737667)](https://camo.githubusercontent.com/873d09563e7aa61a9c54fca6fa03f7a5291f948ef749cd3349ec1b90340daae4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f776465732f7068702d4931386e2d4c31306e2e737667)[![Latest Stable Version](https://camo.githubusercontent.com/fe4fc54c10ceff880c3a084d9944f86f55c0cbc800e86c3913d112536629f95f/68747470733a2f2f706f7365722e707567782e6f72672f776465732f7068702d4931386e2d4c31306e2f762f737461626c65)](https://packagist.org/packages/wdes/php-I18n-L10n)

License
-------

[](#license)

[![FOSSA Status](https://camo.githubusercontent.com/fcf7c027e975293977a4b085866a19f63fc009c7cb3fb35240d02259ee728f1c/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d253246776465732532467068702d4931386e2d4c31306e2e7376673f747970653d6c61726765)](https://app.fossa.io/projects/git%2Bgithub.com%2Fwdes%2Fphp-I18n-L10n?ref=badge_large)

About
-----

[](#about)

We use the [`phpmyadmin/twig-i18n-extension`](https://github.com/phpmyadmin/twig-i18n-extension#readme) for the Twig extension.

How to use
----------

[](#how-to-use)

```
composer require wdes/php-i18n-l10n
```

Have a look at example file [example/simple.php](example/simple.php)

### Example without a MO file

[](#example-without-a-mo-file)

```
