PHPackages                             redcatphp/localize - 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. redcatphp/localize

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

redcatphp/localize
==================

Localize - Internationalization Toolbox with Gettext wrapper, Extractors, Unicode Common Locale Data Repository

v1.5(10y ago)47451LGPL-3.0+PHPPHP &gt;=5.4.0

Since Aug 20Pushed 7y ago2 watchersCompare

[ Source](https://github.com/redcatphp/localize)[ Packagist](https://packagist.org/packages/redcatphp/localize)[ Docs](http://redcatphp.com/localize-i18n)[ RSS](/packages/redcatphp-localize/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (6)Used By (1)

**No longer actively maintained. I work now with NodeJS and I recommand you to take a look at [globalize](https://github.com/globalizejs/globalize)**

Localize
========

[](#localize)

Localize is an internationalization toolbox with [Gettext](https://en.wikipedia.org/wiki/Gettext) wrapper, Extractors, Unicode [ CLDR. ](https://en.wikipedia.org/wiki/Common_Locale_Data_Repository)
and some internationalization [ ISO ](https://en.wikipedia.org/wiki/International_Organization_for_Standardization) codes.

Gettext wrapper
---------------

[](#gettext-wrapper)

Translator and GettextEmulator are RedCat's OOP adapation of [php-gettext](https://launchpad.net/php-gettext/) library.
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.
The structure of locales is $projectHome/langs/$lang/LC\_MESSAGES/messages.mo, eg: www/langs/fr/LC\_MESSAGES/messages.mo. It support cache regeneration without restart apache by dint of use a copy of MO file named with timestamp suffix. To enable look for last message.$time.mo set dev to true. You'll have to create this file manualy or with other i18n tool.

```
Translator::getInstance()->dev = true;
            
```

You can include "\_\_.php" to use procedural function based on *RedCat\\Localize\\Translator* static current instance.

```
echo \_\_($msgid);
echo n\_\_($singular,$plural,$number);
            
```

CLDR - Punic
------------

[](#cldr---punic)

Punic - PHP translation and localization made easy. It contain internationalization data for language, calendar, territory, number, unit, phone, currency, plural and misc. Punic is a third party [ CLDR. ](https://en.wikipedia.org/wiki/Common_Locale_Data_Repository) library. See the official [Punic documentation](http://punic.github.io/).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~47 days

Total

5

Last Release

3734d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/085e64547ac1b32cc49f4f6ba5950c35f593f79d8523e2379869ab512eb8a725?d=identicon)[surikat](/maintainers/surikat)

---

Top Contributors

[![devthejo](https://avatars.githubusercontent.com/u/6781828?v=4)](https://github.com/devthejo "devthejo (44 commits)")

---

Tags

localizationinternationalizationi18nl10ncldrgettextlocalizeCommon Locale Data Repository

### Embed Badge

![Health badge](/badges/redcatphp-localize/health.svg)

```
[![Health](https://phpackages.com/badges/redcatphp-localize/health.svg)](https://phpackages.com/packages/redcatphp-localize)
```

###  Alternatives

[symfony/intl

Provides access to the localization data of the ICU library

2.6k199.8M1.1k](/packages/symfony-intl)[gettext/languages

gettext languages with plural rules

7530.3M11](/packages/gettext-languages)[punic/punic

PHP-Unicode CLDR

1542.9M29](/packages/punic-punic)[aplus/language

Aplus Framework Language Library

2351.7M15](/packages/aplus-language)[aura/intl

The Aura Intl package provides internationalization tools, specifically message translation.

898.3M4](/packages/aura-intl)[fisharebest/localization

A lightweight localization database and translation tools, with data from the CLDR, IANA, ISO, etc.

3191.1k2](/packages/fisharebest-localization)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
