php-gettext by danilo segan. This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system
Using Composer
Create a composer.json file in your project root:
{
"require": {
"smmoosavi/php-gettext-core": "1.0.*"
}
}
Then run the following composer command:
$ php composer.phar install