carloscarucce/roman-algarisms

Functions for converting roman algarisms to integer and vice versa

v1.0 2022-10-06 18:14 UTC

This package is auto-updated.

Last update: 2024-11-14 23:08:34 UTC


README

A simple package to make conversion between roman and integer.

Installation

composer require carloscarucce/roman-algarisms

Usage

Convert integer number to roman

$roman = int_to_roman(20);
echo $roman; //XX

Convert roman to integer

$number = roman_to_int('XIV');
echo $number; //14