PHPackages                             siilike/messageformat - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. siilike/messageformat

ActiveLibrary[Localization &amp; i18n](/categories/localization)

siilike/messageformat
=====================

ICU message formatting using keywords instead of positional integers

v1.0(3y ago)0627MITPHP

Since Feb 1Pushed 3y agoCompare

[ Source](https://github.com/siilike/messageformat)[ Packagist](https://packagist.org/packages/siilike/messageformat)[ Docs](https://github.com/magneds/php-messageformat)[ RSS](/packages/siilike-messageformat/feed)WikiDiscussions master Synced 1mo ago

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

siilike/messageformat
=====================

[](#siilikemessageformat)

Forked from magneds/messageformat.

The PHP Intl [MessageFormatter](https://php.net/manual/en/class.messageformatter.php) class works great, except for the positional variables syntax. This library solves that by providing a variable name based solution, making it easier for translators to translate content with more of an understanding of what variables represent.

As a positive side effect, it also makes the code more robust by allowing for change in variables without compromising the variable order.

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

[](#installation)

```
$ composer require magneds/messageformat

```

Usage
-----

[](#usage)

```
