PHP Classes

PHP Roman Numeral to Number: Convert numbers between Roman and decimal system

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 112 All time: 9,573 This week: 119Up
Version License PHP version Categories
numeralo 1MIT/X Consortium ...5.4PHP 5, Text processing, Conversion


This class can convert numbers between Roman and decimal system.

It can take a given decimal number and convert it to a string of letters that represents it in the Roman system. Currently it can convert numbers up to 3,999,999.

The class can also do the opposite, i.e. convert a string with a Roman number to an integer in the decimal system.

Picture of Stefan Jibrail Froelich
  Performance   Level  
Name: Stefan Jibrail Froelich is available for providing paid consulting. Contact Stefan Jibrail Froelich .
Classes: 6 packages by
Country: United States United States
Age: ???
All time rank: 1106159 in United States United States
Week rank: 349 Up41 in United States United States Up
Innovation award
Innovation award
Nominee: 3x



for($i=1;$i< 10001; $i++) {

$n = Numeralo::number_to_numerals($i);
$r = Numeralo::numerals_to_number($n);
$n . ' : ' . $r . '<hr />';

  Files folder image Files  
File Role Description
Files folder imageMisc (1 file)
Accessible without login Plain text file example.php Example example usage of the Numeralo class
Accessible without login Plain text file LICENSE Lic. License text

  Files folder image Files  /  Misc  
File Role Description
  Accessible without login Plain text file Numeralo.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,573
This week:119Up