PHPackages                             yiisoft/i18n-formatter-intl - 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. [Framework](/categories/framework)
4. /
5. yiisoft/i18n-formatter-intl

Abandoned → [yiisoft/translator-formatter-intl](/?search=yiisoft%2Ftranslator-formatter-intl)ArchivedLibrary[Framework](/categories/framework)

yiisoft/i18n-formatter-intl
===========================

Yii Translator intl Message Formatter

1.0.0(4y ago)109806BSD-3-ClausePHPPHP ^7.4|^8.0

Since May 13Pushed 3y ago12 watchersCompare

[ Source](https://github.com/yiisoft/translator-formatter-intl)[ Packagist](https://packagist.org/packages/yiisoft/i18n-formatter-intl)[ Docs](https://www.yiiframework.com/)[ GitHub Sponsors](https://github.com/yiisoft)[ Fund](https://opencollective.com/yiisoft)[ RSS](/packages/yiisoft-i18n-formatter-intl/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (3)Used By (0)

  **This package is deprecated and is now part of [yiisoft/translator](https://github.com/yiisoft/translator).**

 ❌

---

 [ ![](https://camo.githubusercontent.com/8317c17418b39410a660f5149071d26c5023c0d5fb2b7ebb771324812f666d73/68747470733a2f2f796969736f66742e6769746875622e696f2f646f63732f696d616765732f7969695f6c6f676f2e737667) ](https://github.com/yiisoft)

Yii Translator intl Message Formatter
=====================================

[](#yii-translator-intl-message-formatter)

[![Latest Stable Version](https://camo.githubusercontent.com/b517a1fe4a931914eb5a0cbbd31240142b922e2ccf27020d4ed003d78a86b318/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f7472616e736c61746f722d666f726d61747465722d696e746c2f762f737461626c652e706e67)](https://packagist.org/packages/yiisoft/translator-formatter-intl)[![Total Downloads](https://camo.githubusercontent.com/382e090e3657baa6827b2231f2b5a01d3cc71cd153fc8adac005ad976c439df8/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f7472616e736c61746f722d666f726d61747465722d696e746c2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/yiisoft/translator-formatter-intl)[![Build status](https://github.com/yiisoft/translator-formatter-intl/workflows/build/badge.svg)](https://github.com/yiisoft/translator-formatter-intl/actions?query=workflow%3Abuild)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/066233f9ae30c450d4c7c72190f874a5c209ca8c1a5c8274b3984168014d9ddf/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f796969736f66742f7472616e736c61746f722d666f726d61747465722d696e746c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yiisoft/translator-formatter-intl/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/7c8a5bdeaa99e8158c03644064f8900f750aec3fbf3291da4fae5b2d2f3e92f9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f796969736f66742f7472616e736c61746f722d666f726d61747465722d696e746c2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yiisoft/translator-formatter-intl/?branch=master)[![Mutation testing badge](https://camo.githubusercontent.com/44b6ccd9ac66531bd1a18673f410b6be9bb3affad9fb79c596a27e4a3799db22/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246796969736f66742532467472616e736c61746f722d666f726d61747465722d696e746c2532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/yiisoft/translator-formatter-intl/master)[![static analysis](https://github.com/yiisoft/translator-formatter-intl/workflows/static%20analysis/badge.svg)](https://github.com/yiisoft/translator-formatter-intl/actions?query=workflow%3A%22static+analysis%22)[![type-coverage](https://camo.githubusercontent.com/a61db2f7e6630b446bcfbc0a90c123a0f3b6d4f2042ae01c4504c8e1b9b0501b/68747470733a2f2f73686570686572642e6465762f6769746875622f796969736f66742f7472616e736c61746f722d666f726d61747465722d696e746c2f636f7665726167652e737667)](https://shepherd.dev/github/yiisoft/translator-formatter-intl)

The package provides message formatter that utilizes PHP intl extension message formatting capabilities.

Requirements
------------

[](#requirements)

- PHP 7.4 or higher.
- `intl` PHP extension 1.0.2 or higher.
- `ICU` library 49.0 or higher.

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

[](#installation)

The package could be installed with composer:

```
composer require yiisoft/translator-formatter-intl --prefer-dist
```

Configuration
-------------

[](#configuration)

In case you use [`yiisoft/config`](http://github.com/yiisoft/config), you will get configuration automatically. If not, the following DI container configuration is necessary:

```
