PHPackages                             crazycodr/roman - 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. crazycodr/roman

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

crazycodr/roman
===============

Provides a simple decimal/roman number converter

1.0.1(6y ago)792.1k↓37.2%1MITPHP

Since Feb 18Pushed 6y agoCompare

[ Source](https://github.com/crazycodr/roman)[ Packagist](https://packagist.org/packages/crazycodr/roman)[ RSS](/packages/crazycodr-roman/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

ROMAN
=====

[](#roman)

[![Latest Version](https://camo.githubusercontent.com/a79f80dfed4bba06090ff599c28bb304aa577dc2850cb81474be9de1e62b2c50/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6372617a79636f64722f726f6d616e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/crazycodr/roman/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/d801fa1cd24eeb27e00a88f73a7b28936db642bde61a0837ca9f357f3d857b35/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6372617a79636f64722f726f6d616e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/crazycodr/roman)[![Total Downloads](https://camo.githubusercontent.com/1694ddb28748f70c17f9ac4908acecb655e2652ef2a90dd05c8acb5c7f926a71/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6372617a79636f64722f726f6d616e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/crazycodr/roman)

Roman is a simple library to convert numbers from decimal to roman and vice versa.

Usage
-----

[](#usage)

```
$converter = new CrazyCodr\Converters\Roman();
$roman = $converter->toRoman(4999); //Outputs MMMMCMXCIX
$number = $converter->fromRoman('MMMMCMXCIX'); //Outputs 4999
```

System Requirements
-------------------

[](#system-requirements)

You need **PHP &gt;= 5.0** although you should be using at least **PHP &gt;= 5.6** by now!

Note that this library is only tested against PHP 5.6, 7.0 and HHVM but should work in any version!

Install
-------

[](#install)

Install `Roman` using Composer.

```
$ composer require crazycodr/roman

```

Testing
-------

[](#testing)

`Roman` has a [PHPUnit](https://phpunit.de) test suite and a coding style compliance test suite using [PHP CS Fixer](http://cs.sensiolabs.org/). To run the tests, run the following command from the project folder.

```
$ composer test
```

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](LICENSE) for more information.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~1238 days

Total

2

Last Release

2548d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a264166a26f76e0a35c096552dc773f8d90d8e1180bd65013234d9f42c021ff0?d=identicon)[crazycodr](/maintainers/crazycodr)

---

Top Contributors

[![crazycodr](https://avatars.githubusercontent.com/u/4398521?v=4)](https://github.com/crazycodr "crazycodr (6 commits)")[![JustBlackBird](https://avatars.githubusercontent.com/u/1167086?v=4)](https://github.com/JustBlackBird "JustBlackBird (1 commits)")[![TiGR](https://avatars.githubusercontent.com/u/281226?v=4)](https://github.com/TiGR "TiGR (1 commits)")

---

Tags

convertformatroman

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/crazycodr-roman/health.svg)

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

###  Alternatives

[willdurand/negotiation

Content Negotiation tools for PHP provided as a standalone library.

1.4k129.0M213](/packages/willdurand-negotiation)[akaunting/laravel-money

Currency formatting and conversion package for Laravel

7865.8M46](/packages/akaunting-laravel-money)[gabrielelana/byte-units

Library to parse, format and convert byte units

1752.3M20](/packages/gabrielelana-byte-units)[iamcal/php-emoji

This is a PHP library for dealing with Emoji, allowing you to convert between various native formats and displaying them using HTML.

1.3k550.9k](/packages/iamcal-php-emoji)[gajus/dindent

HTML indentation library for development and testing.

1782.1M64](/packages/gajus-dindent)[khill/php-duration

Converts between colon formatted time, human-readable time and seconds

1611.8M21](/packages/khill-php-duration)

PHPackages © 2026

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