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

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

narokishi/number-to-words
=========================

PHP package to transform numbers into words

1.0.0(7y ago)015[1 PRs](https://github.com/narokishi/number-to-words/pulls)MITPHPPHP &gt;=7.1.0

Since Sep 1Pushed 6y agoCompare

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

READMEChangelogDependencies (2)Versions (2)Used By (0)

Number to Words
===============

[](#number-to-words)

BuildCoverageDownloadsReleaseLicense[![Build Status](https://camo.githubusercontent.com/691ece4bd57cab233603eab6c2bfed6833ac795463df9d1c3e6a32a738d44fa1/68747470733a2f2f7472617669732d63692e636f6d2f6e61726f6b697368692f6e756d6265722d746f2d776f7264732e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/narokishi/number-to-words)[![Coverage Status](https://camo.githubusercontent.com/148a7e4b646cdd326f669d5fe3cae3bda2922613201f8a61fe4cab4b6476258b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6e61726f6b697368692f6e756d6265722d746f2d776f7264732f62616467652e737667)](https://coveralls.io/github/narokishi/number-to-words)[![Total Downloads](https://camo.githubusercontent.com/57a8d47339220d203fa07003359406e74fd3a7a516f106176d24b4e2e4fe68d5/68747470733a2f2f706f7365722e707567782e6f72672f6e61726f6b697368692f6e756d6265722d746f2d776f7264732f646f776e6c6f616473)](https://packagist.org/packages/narokishi/number-to-words)[![Latest Stable Version](https://camo.githubusercontent.com/cee326d7397bc58c396f568fcbaabda0ed79df8e8b728a87d654bd70864daeb2/68747470733a2f2f706f7365722e707567782e6f72672f6e61726f6b697368692f6e756d6265722d746f2d776f7264732f762f737461626c65)](https://packagist.org/packages/narokishi/number-to-words)[![License](https://camo.githubusercontent.com/879855f9c867b209c57a51c169e8111f971b9d0c1ba8ce7a0b28110216ed6cda/68747470733a2f2f706f7365722e707567782e6f72672f6e61726f6b697368692f6e756d6265722d746f2d776f7264732f6c6963656e7365)](https://packagist.org/packages/narokishi/number-to-words)Description
-----------

[](#description)

"NumberToWords" is a **PHP** package, which transform numbers (as float) to human-friendly written value with currency.

Installation
------------

[](#installation)

### Composer

[](#composer)

Installing via [Composer](https://getcomposer.org/download/) will keep this package up to date for you.

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

### Usage

[](#usage)

```
use Narokishi\NumberToWords\NumberTransformer;

...

Transformer::make()
    ->setLanguage('PL') // Language
    ->toWords(172.05, 'PLN') // Value, currency
```

Contributing
------------

[](#contributing)

Thank you for considering contributing to the package.

### Running tests

[](#running-tests)

```
composer tests
composer tests-windows
```

### Submitting a Patch

[](#submitting-a-patch)

- Fork the Repository
- After the action has completed, clone your fork locally

```
git clone git@github.com:{username}/number-to-words.git
cd number-to-words
git remote add upstream git://github.com/narokishi/number-to-words.git
```

- Check that tests pass
- Create and work on your own topic branch

```
git checkout -b {branch} master
```

- Prepare your patch (while rebasing you might have to resolve conflicts)

```
git checkout master
git fetch upstream
git merge upstream/master
git checkout BRANCH_NAME
git rebase master
```

- In case of conflicts

```
 git add {files}
 git rebase --continue
```

- Check that all tests pass and push your branch

```
 git push origin {branch} --force
```

- Make a Pull Request on narokishi/number-to-words repository

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2811d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/32cf09f2a800b85dca4656ae2065b038f9fd52088e3f7d34864883833ec53deb?d=identicon)[Narokishi](/maintainers/Narokishi)

---

Top Contributors

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

---

Tags

phpwordsnumbernumbertowordswordsfromnumber

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/narokishi-number-to-words/health.svg)](https://phpackages.com/packages/narokishi-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)[wilon/php-number2chinese

PHP数字转为汉字描述、人民币大写方法。

14632.0k1](/packages/wilon-php-number2chinese)

PHPackages © 2026

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