PHPackages                             patrickschur/number-to-words - 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. patrickschur/number-to-words

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

patrickschur/number-to-words
============================

Convert numbers to words in English or German.

v2.0(9y ago)82.5k5MITPHPPHP ~7.1

Since Dec 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/patrickschur/number-to-words)[ Packagist](https://packagist.org/packages/patrickschur/number-to-words)[ Docs](https://github.com/patrickschur/number-to-words)[ RSS](/packages/patrickschur-number-to-words/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

number-to-words
===============

[](#number-to-words)

[![Build Status](https://camo.githubusercontent.com/d150446143f7f51c3530645a504ccd1939eb1cd5722da3d6e37c665ed53d53ca/68747470733a2f2f7472617669732d63692e6f72672f7061747269636b73636875722f6e756d6265722d746f2d776f7264732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/patrickschur/number-to-words)[![codecov](https://camo.githubusercontent.com/8347a8406ba1eb1243320a77f7392560178b02fccdc72260622572fef83c89f1/68747470733a2f2f636f6465636f762e696f2f67682f7061747269636b73636875722f6e756d6265722d746f2d776f7264732f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/patrickschur/number-to-words)[![Version](https://camo.githubusercontent.com/8735188169fa40dbd822749d95201441a057fec38e0b0f8c9315b179ef1ee606/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7061747269636b73636875722f6e756d6265722d746f2d776f7264732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/patrickschur/number-to-words)[![Total Downloads](https://camo.githubusercontent.com/c709aaa1aa32c426fc9718e7b8c75c3c4283d863545789a647934f2911176c38/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7061747269636b73636875722f6e756d6265722d746f2d776f7264732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/patrickschur/number-to-words)[![Minimum PHP Version](https://camo.githubusercontent.com/74b9d4b6bff7c07cb8c0667c8980923b9da691aaedabf62e83e3e30bcd47c7d4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e312d46462e7376673f7374796c653d666c61742d737175617265)](http://php.net/)[![License](https://camo.githubusercontent.com/0f1ee18a0cca9aa2366d3dd92b1fad84c9d5cfd44ed9836bcef9bd6c5f1a1f71/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7061747269636b73636875722f6e756d6265722d746f2d776f7264732e7376673f7374796c653d666c61742d737175617265)](https://opensource.org/licenses/MIT)

Convert numbers to words in English or German.

Install via Composer
--------------------

[](#install-via-composer)

```
$ composer require patrickschur/number-to-words
```

How to use
----------

[](#how-to-use)

English
-------

[](#english)

```
use NumberToWords\NumberToWords;
use NumberToWords\Locale\English;

$c = new NumberToWords(new English()); // english

// One followed by 3003 zeros
echo $c->nameOfLargeNumber(3003); // outputs "millinillion"

echo $n->convert('3043.43'); // outputs "three thousand forty-three point four three"
echo $n->convert('3.1415926535'); // outputs "three point one four one five nine two six five three five"
```

German
------

[](#german)

```
use NumberToWords\NumberToWords;
use NumberToWords\Locale\German;

$c = new NumberToWords(new German()); // german

// Eine Eins gefolgt von 6000 Nullen
echo $c->nameOfLargeNumber(6000); // outputs "Millinillion"

// Eine Eins gefolgt von 59994 Nullen
echo $c->nameOfLargeNumber(59994); // outputs "Nonillinovenonagintanongentillion"

echo $n->convert('509324'); // outputs "fünfhundertneuntausenddreihundertvierundzwanzig"
echo $n->convert('3,1415926535'); // outputs "drei Komma eins vier eins fünf neun zwei sechs fünf drei fünf"
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

3404d ago

Major Versions

v1.1 → v2.02017-01-15

PHP version history (2 changes)v1.0PHP ^7.1

v2.0PHP ~7.1

### Community

Maintainers

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

---

Top Contributors

[![patrickschur](https://avatars.githubusercontent.com/u/18181635?v=4)](https://github.com/patrickschur "patrickschur (27 commits)")

---

Tags

convert-numbersnumber-to-wordsconvertwordsnumbersto

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/patrickschur-number-to-words/health.svg)

```
[![Health](https://phpackages.com/badges/patrickschur-number-to-words/health.svg)](https://phpackages.com/packages/patrickschur-number-to-words)
```

###  Alternatives

[doctrine/inflector

PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.

11.4k855.8M711](/packages/doctrine-inflector)[kwn/number-to-words

Multi language standalone PHP number to words converter. Fully tested, open for extensions and new languages.

4235.0M21](/packages/kwn-number-to-words)[akaunting/laravel-money

Currency formatting and conversion package for Laravel

7825.3M18](/packages/akaunting-laravel-money)[coduo/php-to-string

Simple library that converts PHP value into strings

27112.7M10](/packages/coduo-php-to-string)[misd/linkify

Converts URLs and email addresses in text into HTML links

1122.9M10](/packages/misd-linkify)

PHPackages © 2026

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