PHPackages                             wandersonwhcr/plates-romans - 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. [Search &amp; Filtering](/categories/search)
4. /
5. wandersonwhcr/plates-romans

ActiveLibrary[Search &amp; Filtering](/categories/search)

wandersonwhcr/plates-romans
===========================

Plates Extension to Convert Arabic to Roman Numerals and Vice Versa

1.0.1(5y ago)07MITPHPPHP &gt;=7.4

Since Apr 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/wandersonwhcr/plates-romans)[ Packagist](https://packagist.org/packages/wandersonwhcr/plates-romans)[ RSS](/packages/wandersonwhcr-plates-romans/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (3)Used By (0)

plates-romans
=============

[](#plates-romans)

Plates Extension to Convert Arabic to Roman Numerals and Vice Versa

[![Build Status](https://github.com/wandersonwhcr/plates-romans/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/wandersonwhcr/plates-romans/actions/workflows/test.yml?query=branch%3Amain)[![Latest Stable Version](https://camo.githubusercontent.com/cd0185464454d13ae08dbe922dece706fffcd2023ce42a90167c1030d68116e1/68747470733a2f2f706f7365722e707567782e6f72672f77616e646572736f6e776863722f706c617465732d726f6d616e732f762f737461626c653f666f726d61743d666c6174)](https://packagist.org/packages/wandersonwhcr/plates-romans)[![License](https://camo.githubusercontent.com/eab6ca33f6e5312aaf4497dd26feac15c734bd972072176dbab610066e2804ec/68747470733a2f2f706f7365722e707567782e6f72672f77616e646572736f6e776863722f706c617465732d726f6d616e732f6c6963656e73653f666f726d61743d666c6174)](https://packagist.org/packages/wandersonwhcr/plates-romans)

Description
-----------

[](#description)

This package extension provides a Plates integration for [Romans](https://github.com/wandersonwhcr/romans) library, providing methods to convert a `string` with a Roman number to a `string` with Arabic and vice-versa.

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

[](#installation)

This package uses Composer as default repository. You can install it adding the name of package in `require` attribute of `composer.json`, pointing to the last stable version.

```
{
  "require": {
    "wandersonwhcr/plates-romans": "^1.0"
  }
}
```

Usage
-----

[](#usage)

This package acts as a Plates extension and must be loaded with Plates Engine.

```
use League\Plates\Engine;
use League\Plates\Romans\Extension\Romans as RomansExtension;

$engine = new Engine();

$engine->loadExtension(new RomansExtension());
```

After, methods `arabicToRoman` and `romanToArabic` can be used inside templates as example below.

```
// Outputs MCMXCIX
Arabic 1999 can be represented as  Roman Numeral.

```

```
// Outputs 2021
Roman MMXXI can be represented as  Arabic Numeral.

```

Also, errors can be handled using a *try..catch* syntax.

```
use League\Plates\Romans\Extension\Exception as ExtensionException;

try {
    $this->arabicToRoman('-1');
} catch (ExtensionException $e) {
    // Invalid Integer: -1
}

try {
    $this->romanToArabic('Z');
} catch (ExtensionException $e) {
    // Invalid Token: Z
}
```

Development
-----------

[](#development)

You can use Docker Compose to build an image and run a container to develop and test this package.

```
docker-compose build
docker-compose run romans composer install
docker-compose run romans composer test
```

License
-------

[](#license)

This package is opensource and available under MIT license described in [LICENSE](https://github.com/wandersonwhcr/plates-romans/blob/main/LICENSE).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

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

Total

2

Last Release

1866d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/907c8faa9e7d6e1777b18bafcc2b94909b1b82a9fe15b462fb18b02f88a00da1?d=identicon)[wandersonwhcr](/maintainers/wandersonwhcr)

---

Top Contributors

[![wandersonwhcr](https://avatars.githubusercontent.com/u/5286703?v=4)](https://github.com/wandersonwhcr "wandersonwhcr (55 commits)")

---

Tags

composerconverterphpplatesplates-extensionromanroman-numberroman-numeralconverterfilterplatesromanroman-numberroman-numeralplates-extension

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/wandersonwhcr-plates-romans/health.svg)

```
[![Health](https://phpackages.com/badges/wandersonwhcr-plates-romans/health.svg)](https://phpackages.com/packages/wandersonwhcr-plates-romans)
```

###  Alternatives

[wandersonwhcr/romans

A Simple PHP Roman Numerals Library

44395.1k8](/packages/wandersonwhcr-romans)[clue/stream-filter

A simple and modern approach to stream filtering in PHP

1.7k261.7M7](/packages/clue-stream-filter)[laminas/laminas-filter

Programmatically filter and normalize data and files

9428.0M150](/packages/laminas-laminas-filter)[friendsofcake/search

CakePHP Search plugin using PRG pattern

1742.0M37](/packages/friendsofcake-search)[htmlawed/htmlawed

Official htmLawed PHP library for HTML filtering

401.1M9](/packages/htmlawed-htmlawed)[outl1ne/nova-input-filter

An input filter for Laravel Nova

24822.7k](/packages/outl1ne-nova-input-filter)

PHPackages © 2026

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