PHPackages                             drrcknlsn/number-converter - 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. drrcknlsn/number-converter

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

drrcknlsn/number-converter
==========================

A tool to convert numbers to their written lingual form.

07PHP

Since Dec 3Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

NumberConverter
===============

[](#numberconverter)

NumberConverter is a simple interface for converting numbers from their numeric representations into their written, lingual representations. Other, probably better solutions already exist (see below), and this was created only as a coding exercise.

### Example

[](#example)

```
$converter = new DrrckNlsn\NumberConverter\EnglishNumberConverter();
echo $converter->convert(1234567);
```

Output:

```
one million two hundred thirty four thousand five hundred sixty seven
```

### Internationalization

[](#internationalization)

Currently, there is only an `EnglishNumberConverter` implementation, but the project was created with other languages in mind.

### Demo

[](#demo)

This package comes with a simple CLI binary for demonstrating the `EnglishNumberConverter` class, located at `bin/convertNumber`.

### Installing via Composer

[](#installing-via-composer)

The recommended way to install NumberConverter is via [Composer](https://getcomposer.org/doc/00-intro.md):

```
composer require drrcknlsn/number-converter
```

After installing the dependency, you will need to require Composer's autoloader:

```
require 'vendor/autoload.php';
```

### Existing Solutions

[](#existing-solutions)

The [`intl`](http://php.net/manual/en/book.intl.php) extension provides the [`NumberFormatter`](http://php.net/manual/en/class.numberformatter.php)class, which can be used to accomplish the same goal, using `NumberFormatter::SPELLOUT`.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/drrcknlsn-number-converter/health.svg)

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

PHPackages © 2026

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