PHPackages                             arius/number-formatter - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. arius/number-formatter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

arius/number-formatter
======================

Extended PHP NumberFormatter class.

v1.1.0(10y ago)169.9k↓37.5%4MITPHPPHP &gt;=5.4

Since Feb 8Pushed 10y ago2 watchersCompare

[ Source](https://github.com/arius86/number-formatter)[ Packagist](https://packagist.org/packages/arius/number-formatter)[ RSS](/packages/arius-number-formatter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

arius/number-formatter
======================

[](#ariusnumber-formatter)

[![Build Status](https://camo.githubusercontent.com/6c227b633469c79edfb538e42b4a55b2c88112c4cc4951671d85304c64e23fd3/68747470733a2f2f7472617669732d63692e6f72672f617269757338362f6e756d6265722d666f726d61747465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/arius86/number-formatter)[![Coverage Status](https://camo.githubusercontent.com/aeff36e172be34664cbdba7e9cd827861a638095113db15ba2a3a146e0eef7d4/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f617269757338362f6e756d6265722d666f726d61747465722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/r/arius86/number-formatter?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/e4c5381754c26f90dbc5bd44f459c8fb273579010a72ed58f86cbf75060381fb/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f38373734326339612d343436632d343633352d396139612d6232373734303563623361312f6d696e692e706e67)](https://insight.sensiolabs.com/projects/87742c9a-446c-4635-9a9a-b277405cb3a1)

PHP NumberFormatter extended with additional ordinals not supported by ICU.

**Feel free to add more languages. Fork, pull request and contribute!**

How to
======

[](#how-to)

1. composer.json

---

```
{
     "require": {
        "arius/number-formatter": "1.*"
     }
}
```

2. PHP

---

Use in code just like [NumberFormatter class](http://php.net/manual/en/class.numberformatter.php).

```
use Arius\NumberFormatter;

$formatter = new NumberFormatter('pl', NumberFormatter::SPELLOUT);
$formatter->setTextAttribute(NumberFormatter::DEFAULT_RULESET, "%spellout-ordinal");

$formatter->format(123);
```

Additional supported ordinals
=============================

[](#additional-supported-ordinals)

1. Polish (pl)

---

- spellout-ordinal
- spellout-ordinal-feminine
- spellout-ordinal-masculine
- spellout-ordinal-neuter

2. Russian (ru)

---

- spellout-ordinal
- spellout-ordinal-feminine
- spellout-ordinal-masculine
- spellout-ordinal-neuter
- spellout-ordinal-plural (plural isn't part of ICU in all languages)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 57.1% 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 ~137 days

Total

3

Last Release

3841d ago

### Community

Maintainers

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

---

Top Contributors

[![arius86](https://avatars.githubusercontent.com/u/1889755?v=4)](https://github.com/arius86 "arius86 (20 commits)")[![GrischaK](https://avatars.githubusercontent.com/u/12846865?v=4)](https://github.com/GrischaK "GrischaK (15 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/arius-number-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/arius-number-formatter/health.svg)](https://phpackages.com/packages/arius-number-formatter)
```

###  Alternatives

[briceburg/silverstripe-pickerfield

GridField based management of has\_one , has\_many , and many\_many relationship selection

2541.2k1](/packages/briceburg-silverstripe-pickerfield)

PHPackages © 2026

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