PHPackages                             unionofrad/li3\_cldr - 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. unionofrad/li3\_cldr

ActiveLithium-library[Localization &amp; i18n](/categories/localization)

unionofrad/li3\_cldr
====================

A Lithium plugin adding support for querying Unicode's CLDR.

v1.0.3(8y ago)72.4k12BSD-3-ClausePHPPHP &gt;=5.3.6

Since Dec 16Pushed 7y ago6 watchersCompare

[ Source](https://github.com/UnionOfRAD/li3_cldr)[ Packagist](https://packagist.org/packages/unionofrad/li3_cldr)[ Docs](http://li3.me)[ RSS](/packages/unionofrad-li3-cldr/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (11)Used By (2)

li3\_cldr
=========

[](#li3_cldr)

From the [CLDR project site](http://cldr.unicode.org/index):

> The Unicode CLDR provides key building blocks for software to support the world's languages, with the largest and most extensive standard repository of locale data available. This data is used by a wide spectrum of companies for their software internationalization and localization, adapting software to the conventions of different languages \[...\]

The core g11n implementation in Lithium already utilizes the CLDR indirectly through the [intl php extension](http://php.net/manual/en/book.intl.php), which makes use of [ICU](http://site.icu-project.org/), which in turn is based upon the data provided by the [CLDR](http://cldr.unicode.org/index). So at first sight there seems to be no need to access the CLDR directly. As more and more features are added to the intl extension it does not provide a way to access certain data yet. With the CLDR Catalog adapter contained in this plugin you can query the CLDR for this data. Currently there's support for:

- Postal code validation rules for most countries (`validation.postalCode`).
- List and translation of currencies (`currency`).
- List and translation of languages (`language`).
- List and translation of territories (`territory`).
- List and translation of scripts (`script`).

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

[](#installation)

Clone the project into your libraries directory.

```
git clone git@github.com:UnionOfRAD/li3_cldr.git /path/to/project/libraries/li3_cldr

```

Make your Lithium app aware of the plugin by adding the following line to your bootstrap/libraries.php file.

```
Libraries::add('li3_cldr');

```

Resource Dependencies
---------------------

[](#resource-dependencies)

Currently the plugin does not contain the actual CLDR data. We must take the following steps to install it. Download the ZIP file of the latest release, unpack it into a temporary directory and move the common directory into place.

```
curl http://unicode.org/Public/cldr/1.8.0/core.zip -o core.zip
unzip core.zip -d /tmp

mv /tmp/common /path/to/project/libraries/li3_cldr/resources/g11n
# ... or ...
mv /tmp/common /path/to/project/app/resource/g11n/cldr
```

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity64

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 ~146 days

Recently: every ~197 days

Total

10

Last Release

2840d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a358e1a5ab7f7c81ecaae07acd830aa4a36726ab4da46a11df754a6e5b3a4cda?d=identicon)[mariuswilms](/maintainers/mariuswilms)

---

Top Contributors

[![mariuswilms](https://avatars.githubusercontent.com/u/29702?v=4)](https://github.com/mariuswilms "mariuswilms (26 commits)")

---

Tags

pluginphpunicodecldrlithiumli3g11n

### Embed Badge

![Health badge](/badges/unionofrad-li3-cldr/health.svg)

```
[![Health](https://phpackages.com/badges/unionofrad-li3-cldr/health.svg)](https://phpackages.com/packages/unionofrad-li3-cldr)
```

###  Alternatives

[gettext/languages

gettext languages with plural rules

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

PHP-Unicode CLDR

1542.9M29](/packages/punic-punic)[mediawiki/translate

The only standard solution to translate any kind of text with an avant-garde web interface within MediaWiki, including your documentation and software

457.9k](/packages/mediawiki-translate)[unionofrad/li3_docs

An API and wiki-like documentation generator.

1682.6k](/packages/unionofrad-li3-docs)[unionofrad/li3_quality

This li₃ plugin adds code quality assurance to your toolbelt.

1288.2k](/packages/unionofrad-li3-quality)

PHPackages © 2026

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