Provides a simple decimal/roman number converter
Roman is a simple library to convert numbers from decimal to roman and vice versa.
$converter = new CrazyCodr\Converters\Roman(); $roman = $converter->toRoman(4999); //Outputs MMMMCMXCIX $number = $converter->fromRoman('MMMMCMXCIX'); //Outputs 4999
You need PHP >= 5.0 although you should be using at least PHP >= 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!
Roman using Composer.
$ composer require crazycodr/roman
$ composer test
The MIT License (MIT). Please see LICENSE for more information.