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

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

jayen/number-converter
======================

Laravel package to convert numbers written in words into integers.

2.0.0(8mo ago)15MITPHPPHP &gt;=8.1

Since Aug 19Pushed 8mo agoCompare

[ Source](https://github.com/JayenKB/number-converter)[ Packagist](https://packagist.org/packages/jayen/number-converter)[ Docs](https://github.com/jayenbambharoliya/number-converter)[ RSS](/packages/jayen-number-converter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Number Converter for Laravel
============================

[](#number-converter-for-laravel)

A Laravel package to convert **numbers written in words** into **numeric values**, and vice versa.

✨ Features
----------

[](#-features)

- Convert `"two hundred million"` → `200000000`
- Convert `"Three Hundred Thousand"` → `300000`
- Convert `200000000` → `"two hundred million"`
- Convert `300000` → `"Three Hundred Thousand"`

---

📦 Installation
--------------

[](#-installation)

Install via [Packagist](https://packagist.org/packages/jayen/number-converter) using Composer:

```
composer require jayen/number-converter
```

---

🚀 Usage
-------

[](#-usage)

### Using the Facade

[](#using-the-facade)

```
use Jayen\NumberConverter\Facades\NumberConverter;

$number = NumberConverter::wordsToNumber("One Thousand Two Hundred Thirty Four");
// Output: 1234

$words = NumberConverter::numberToWords("1234");
// Output: one thousand, two hundred and thirty-four
```

### Using Dependency Injection

[](#using-dependency-injection)

```
use Jayen\NumberConverter\NumberConverter;

public function convert(NumberConverter $converter)
{
    $number = $converter->wordsToNumber("Five Million Six Hundred");
    // Output: 5600000

    $words = $converter->numberToWords("5600000");
    // Output: Five Million Six Hundred
}
```

---

📜 License
---------

[](#-license)

This package is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance62

Regular maintenance activity

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

Every ~0 days

Total

3

Last Release

263d ago

Major Versions

1.1.0 → 2.0.02025-08-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/d0e11de7ca6ac908cf8cfc55ab194987e7e07ee523c2e2539edaf93a2947fe70?d=identicon)[jayen\_bambhroliya](/maintainers/jayen_bambhroliya)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M682](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M157](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M210](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M857](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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