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

ActivePhp-parsers[Localization &amp; i18n](/categories/localization)

erebot/intl
===========

I18N API for Erebot

0.2.3(7y ago)01.7k4GPL-3.0+PHPPHP &gt;=7.0

Since Jul 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Erebot/Intl)[ Packagist](https://packagist.org/packages/erebot/intl)[ Docs](https://github.com/Erebot/Intl)[ RSS](/packages/erebot-intl/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (7)Used By (4)

I18N library for Erebot
=======================

[](#i18n-library-for-erebot)

This library was initially developped to provide I18N (internationalization) features for the [Erebot](https://www.erebot.net/) IRC bot.

It is aimed at working primarily with files generated using the gettext suite of programs. It can load GNU Gettext PO and MO files, as well as Solaris Gettext MO files.

The library's programming interface is pretty straightforward if you have ever worked with Gettext. It is loosely based on that of the Python `gettext`module, works on PHP 7.0+ and does not require the `Gettext` PHP extension.

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

[](#installation)

To use this library in your project, you must already be using the [Composer](https://getcomposer.org/) dependency manager.

Simply add this library to your project dependencies:

```
$ php /path/to/composer.phar require erebot/intl
```

Usage
-----

[](#usage)

The simplest way to start working with this library is to use the `GettextFactory` abstract class like so:

```
