PHPackages                             bartfeenstra/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. bartfeenstra/cldr

ActiveLibrary

bartfeenstra/cldr
=================

1.0.0(13y ago)529.2k1[2 issues](https://github.com/bartfeenstra/cldr/issues)[2 PRs](https://github.com/bartfeenstra/cldr/pulls)MITPHPPHP &gt;=5.3.0

Since Jan 8Pushed 10y ago2 watchersCompare

[ Source](https://github.com/bartfeenstra/cldr)[ Packagist](https://packagist.org/packages/bartfeenstra/cldr)[ RSS](/packages/bartfeenstra-cldr/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

CLDR
====

[](#cldr)

Introduction
============

[](#introduction)

BartFeenstra/cldr is a PHP library to parse decimals, currency amounts, percentages, and even integers using [Unicode Common Locale Data Repository number patterns](http://cldr.unicode.org/translation/number-patterns). Unlike PHP's [Intl](http://nl1.php.net/manual/en/book.intl.php) extension, this library allows CLDR patterns to contain non-standard characters (such as HTML) and it does not have dependencies, which is ideal for shared hosting.

Usage
=====

[](#usage)

It offers four classes (`CurrencyFormatter`, `DecimalFormatter`, `IntegerFormatter`, and `PercentageFormatter`) which accept a CLDR pattern and optional replacements for replaceable special symbols, and can be reused to format different numbers.

Requirements
============

[](#requirements)

- PHP 5.3.x or higher
- PHPUnit 3.7.\* (for running tests only)

Integrates with
===============

[](#integrates-with)

- [Composer](http://getcomposer.org) (as [bartfeenstra/cldr](https://packagist.org/packages/bartfeenstra/cldr))

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

2

Last Release

4878d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7d655ade44481e4066f8c9ef8ae638d076e82de4fc086ed7bfb4eb03ff0b5fab?d=identicon)[bartfeenstra](/maintainers/bartfeenstra)

---

Top Contributors

[![bartfeenstra](https://avatars.githubusercontent.com/u/376735?v=4)](https://github.com/bartfeenstra "bartfeenstra (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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