PHPackages                             magneds/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. magneds/messageformat

ActiveLibrary

magneds/messageformat
=====================

ICU message formatting using keywords instead of positional integers

11711PHP

Since Nov 28Pushed 7y ago3 watchersCompare

[ Source](https://github.com/Magneds/php-messageformat)[ Packagist](https://packagist.org/packages/magneds/messageformat)[ RSS](/packages/magneds-messageformat/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

magneds/messageformat
=====================

[](#magnedsmessageformat)

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)

```
