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

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

cjrasmussen/number
==================

Simple functions for numeric conversions

1.1.0(1mo ago)057MITPHPPHP &gt;=7.1.0

Since Sep 16Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/cjrasmussen/Number)[ Packagist](https://packagist.org/packages/cjrasmussen/number)[ Docs](https://www.clarkrasmussen.com)[ RSS](/packages/cjrasmussen-number/feed)WikiDiscussions main Synced yesterday

READMEChangelog (2)DependenciesVersions (6)Used By (0)

Number
======

[](#number)

Simple functions for numeric conversions.

Usage
-----

[](#usage)

```
use cjrasmussen\Number\Convert;

$num = Convert::intToOrdinal(153);
echo $num; // 153rd

$num = Convert::intToEnglish(153);
echo $num; // one-hundred fifty-three

$num = Convert::intToRoman(153);
echo $num; // CLIII
```

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

[](#installation)

Simply add a dependency on cjrasmussen/number to your composer.json file if you use [Composer](https://getcomposer.org/) to manage the dependencies of your project:

```
composer require cjrasmussen/number
```

Although it's recommended to use Composer, you can actually include the file(s) any way you want.

License
-------

[](#license)

Number is [MIT](http://opensource.org/licenses/MIT) licensed.

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance91

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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 ~518 days

Total

5

Last Release

42d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0225f44837a665c8a143afa50a34a406a769c523dba31e4cdf73fd0530dede45?d=identicon)[cjrasmussen](/maintainers/cjrasmussen)

---

Top Contributors

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

---

Tags

numbersroman-numerals

### Embed Badge

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

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

###  Alternatives

[kwn/number-to-words

Multi language standalone PHP number to words converter. Fully tested, open for extensions and new languages.

4375.4M23](/packages/kwn-number-to-words)[drupol/phpermutations

Generators and iterators, permutations and combinations.

83717.2k5](/packages/drupol-phpermutations)[rtlopez/decimal

An object oriented immutable arbitrary-precision arithmetic library for PHP

27274.7k2](/packages/rtlopez-decimal)[jurchiks/numbers2words

It spells numbers (and currencies)!

20185.6k3](/packages/jurchiks-numbers2words)[yemenifree/laravel-arabic-numbers-middleware

auto transforms arabic/eastern to eastern/arabic numbers for i.e ١٢٣٤٥٦٧٨ to 12345678

18135.7k](/packages/yemenifree-laravel-arabic-numbers-middleware)[delight-im/random

The most convenient way to securely generate anything random in PHP

2146.3k](/packages/delight-im-random)

PHPackages © 2026

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