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

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

alex-vai/number-to-words
========================

Package for Laravel 5, to convert numbers to text

063PHP

Since Apr 30Pushed 7y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

NumberToWords
=============

[](#numbertowords)

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

[](#installation)

Add package to your composer.json

```
{
    "require": {
        "alex-vai/number-to-words": "dev-master"
    }
}

```

How to use number transformer
-----------------------------

[](#how-to-use-number-transformer)

Using preset locales

```
use NumberToWords\NumberToWords;

$numberToWords = new NumberToWords($locale = 'ru');
$numberTransformer = $numberToWords->transform(1458);
```

Or use your own locale words

```
use Illuminate\Support\Collection;
use NumberToWords\Locale\LocaleTransformer;
use NumberToWords\NumberToWords;

$localeWords = [
    'minus' => 'minus',
    'zero' => 'zero',
    'ten' => [
        ['', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'],
        ['', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'],
    ],
    'teen' => [
        'ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen',
    ],
    'tens' => [
        2 => 'twenty', 'thirty', 'forty', 'fifty', 'sixty', 'seventy', 'eighty', 'ninety',
    ],
    'hundreds' => [
        '', 'hundred', 'two hundred', 'three hundred', 'four hundred', 'five hundred', 'six hundred', 'seven hundred', 'eight hundred', 'nine hundreds',
    ],
    'mega' => [
        [3 => LocaleTransformer::FEMALE],
        [3 => LocaleTransformer::MALE],
        ['thousand', 'thousand', 'thousand', LocaleTransformer::FEMALE],
        ['million', 'million', 'million', LocaleTransformer::MALE],
        ['billion', 'billion', 'billion', LocaleTransformer::MALE],
        ['trillion', 'trillion', 'trillion', LocaleTransformer::MALE],
        ['quadrillion', 'quadrillion', 'quadrillion', LocaleTransformer::MALE],
        ['sextillion', 'sextillons', 'sextillion', LocaleTransformer::MALE],
    ],
];

$numberToWords = new NumberToWords();
$numberToWords->setLocaleWords(new Collection($localeWords));
$numberTransformer = $numberToWords->transform(1458);
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

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/40e1f33f570823a4ef95c5f078104907d9f30feb550ab819d73027e70473c543?d=identicon)[alex-vai](/maintainers/alex-vai)

---

Top Contributors

[![alex-vai](https://avatars.githubusercontent.com/u/50030072?v=4)](https://github.com/alex-vai "alex-vai (9 commits)")

### Embed Badge

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

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

###  Alternatives

[cocosmos/filament-quick-add-select

Instantly create and select new options in Filament relationship selects without opening modals

131.3k](/packages/cocosmos-filament-quick-add-select)

PHPackages © 2026

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