Decimal to Roman Numeral converter ported to PHP

decimal to roman numerals

Back in March I created a decimal to roman numerals converter in JavaScript. Well I’ve now ported it to PHP, which you can download to use freely.

This version works for PHP 5+, so you will need to make some changes for it to work on PHP 4, or if demand requires it, I will do it myself and post it here.

It’s very simple to use, all you need to do is include the roman.numerals.php class file, declare an instance of the class, and convert your required number:

	$r2d = new DecimalToRoman();
        echo $r2d->roman;

Any thoughts or comments, please let me know!