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

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

amirsanni/number-to-words
=========================

A simple library for converting figures to words in PHP.

512.3k↓32.6%4PHP

Since Apr 11Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#number-to-words)

A PHP library for converting numbers (figures) to words in specified currency code.

Installation
============

[](#installation)

```
composer require amirsanni/number-to-words

```

Supported Currency Codes
========================

[](#supported-currency-codes)

AED, AFN, ANG, ARS, AUD, BRL, CAD, CHF, CNY, DKK, DZD, EGP, EUR, GBP, GHC, GHS, HKD, ILS, INR, IQD, IRR, JMD, JOD, JPY, KES, KPW, KRW, KWD, LYD, MXN, MAD, MUR, NGN, NZD, PEN, PHP, PYG, QAR, RON, RSD, RUB, RWF, SAR, SDG, SEK, SGD, SHP, SYP, THB, TND, TRY, TWD, UGX, USD, VES, XAF, XCD, XOF, XPF, YER, ZAR.

Test
====

[](#test)

*$obj = new NumberToWords();*

*echo $obj-&gt;convert(3490948028.56, "NGN");*

Displays **Three Billion, Four Hundred and Ninety Million, Nine Hundred and Forty-Eight Thousand, and Twenty-Eight Naira, Fifty-Six Kobo**.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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/5f9c7f32727efeed7d3a497957e65f20b29b9c08fb9342fdd5f954c1b06158e8?d=identicon)[amirsanni](/maintainers/amirsanni)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[lybc/php-gb2260

451.9k](/packages/lybc-php-gb2260)

PHPackages © 2026

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