Decimal to Roman Numeral converter ported to PHP

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:

<?php
	require("roman.numerals.php");
	
	$r2d = new DecimalToRoman();
	$r2d->convert(2010);
        echo $r2d->roman;
?>

Any thoughts or comments, please let me know!