PHPackages                             d0004/numbers2words - 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. d0004/numbers2words

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

d0004/numbers2words
===================

It spells numbers (and currencies)!

05PHP

Since Jun 3Pushed 1y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

numbers2words
=============

[](#numbers2words)

This is a general-purpose library meant for number spelling for use in, e.g. legal documents and bills.

[![License](https://camo.githubusercontent.com/6dfcbec68820e6f1c24d77eb0515a52a45a4d18d593e399f02889f02bd426ecd/68747470733a2f2f706f7365722e707567782e6f72672f6a75726368696b732f6e756d6265727332776f7264732f6c6963656e7365)](https://packagist.org/packages/jurchiks/numbers2words)[![Downloads](https://camo.githubusercontent.com/aab8eb5963c7e57e13b172db0a050603d6a4c738a194b438235aaf6cdfae9b75/68747470733a2f2f706f7365722e707567782e6f72672f6a75726368696b732f6e756d6265727332776f7264732f646f776e6c6f616473)](https://packagist.org/packages/jurchiks/numbers2words)

Supported languages (ISO 639-1 language codes):

- English (`en`)
- Estonian (`et`)
- Latvian (`lv`)
- Lithuanian (`lt`)
- Russian (`ru`)
- Spanish (`es`)
- Italian (`it`)
- Polish (`pl`)
- Norwegian (`no`)

Supported currencies (ISO 4217 currency codes):

- British Pounds (`GBP`)
- Euro (`EUR`)
- Latvian Lats (`LVL`)
- Lithuanian Lits (`LTL`)
- Russian Roubles (`RUR`)
- U.S. Dollars (`USD`)
- Polish Zloty (`PLN`)
- Tanzanian Shillings (`TZS`)
- Norwegian krone (`NOK`)

#### Installation:

[](#installation)

```
composer require jurchiks/numbers2words

```

#### Usage:

[](#usage)

```
use js\tools\numbers2words\Speller;

Speller::spellNumber(123, Speller::LANGUAGE_RUSSIAN);
// output: сто двадцать три
Speller::spellCurrency(123, Speller::LANGUAGE_ENGLISH, Speller::CURRENCY_EURO, false);
// output: one hundred twenty three euro
Speller::spellCurrency(123, Speller::LANGUAGE_ENGLISH, Speller::CURRENCY_EURO);
// output: one hundred twenty three euro and 0 cents
Speller::spellCurrency(123.45, Speller::LANGUAGE_ENGLISH, Speller::CURRENCY_EURO, true, true);
// output: one hundred twenty three euro and forty five cents
Speller::spellCurrencyShort(123.45, Speller::LANGUAGE_ENGLISH, Speller::CURRENCY_EURO);
// output: one hundred twenty three EUR 45/100
```

#### Twig:

[](#twig)

There is a Twig extension available for this library: [jurchiks/numbers2words\_twig](https://github.com/jurchiks/numbers2words_twig)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 87.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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b957069c9f0524ce9684860de6c4c7585ccd870b387d34c835f14ff356ca6d5?d=identicon)[d0004](/maintainers/d0004)

---

Top Contributors

[![jurchiks](https://avatars.githubusercontent.com/u/542788?v=4)](https://github.com/jurchiks "jurchiks (81 commits)")[![danik0011](https://avatars.githubusercontent.com/u/102237869?v=4)](https://github.com/danik0011 "danik0011 (5 commits)")[![emma255](https://avatars.githubusercontent.com/u/26738290?v=4)](https://github.com/emma255 "emma255 (1 commits)")[![erop](https://avatars.githubusercontent.com/u/124678?v=4)](https://github.com/erop "erop (1 commits)")[![icyz](https://avatars.githubusercontent.com/u/1923633?v=4)](https://github.com/icyz "icyz (1 commits)")[![mrjanczak](https://avatars.githubusercontent.com/u/6569984?v=4)](https://github.com/mrjanczak "mrjanczak (1 commits)")[![spaivaras](https://avatars.githubusercontent.com/u/1462984?v=4)](https://github.com/spaivaras "spaivaras (1 commits)")[![uLow](https://avatars.githubusercontent.com/u/1608213?v=4)](https://github.com/uLow "uLow (1 commits)")[![edgarsstrods](https://avatars.githubusercontent.com/u/25812122?v=4)](https://github.com/edgarsstrods "edgarsstrods (1 commits)")

### Embed Badge

![Health badge](/badges/d0004-numbers2words/health.svg)

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

###  Alternatives

[krisawzm/critical-css

A Laravel package for generating and using inline critical-path CSS.

4714.2k2](/packages/krisawzm-critical-css)

PHPackages © 2026

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