PHP Classes
elePHPant
Icontem

Dec2RomanNumConverter: Convert numbers between decimal and roman

Recommend this page to a friend!
  Info   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2010-12-19 (5 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 237 All time: 7,505 This week: 1,099Up
Version License PHP version Categories
dec2roman_num_conv 2.0GNU General Publi...5PHP 5, Conversion, Math
Description Author

Dec2RomanNumConverter provides API for converting numbers between decimal and roman representations and vice-versa.

Maximal decimal number which can be handled by Dec2RomanNumConverter::dec2roman() method is 3999 as larger numbers require a bar above the base numeral.

Picture of Nikola Posa
Name: Nikola Posa <contact>
Classes: 4 packages by
Country: ???

Details
Dec2RomanNumConverter is a PHP class which enables conversion of 
decimal numbers to Roman numerals and vice-versa. Maximal decimal
number which can be handled by Dec2RomanNumConverter::dec2roman()
method is 3999 as larger numbers require a bar above the base numeral.

AUTHOR
------
Nikola Posa <posa.nikola@gmail.com>

FEATURES
--------
- Conversion of decimal numbers to Roman numerals and vice-versa

INSTALLATION
------------
Dec2RomanNumConverter source code is placed in the "libs" dir, so you
should simply copy its content to some of your project's folder, for
example, in folder where you keep your libraries. Path to that folder
should be in the include_path.

USAGE
-----
echo Dec2RomanNumConverter::dec2roman(1987); //MCMLXXXVII
echo Dec2RomanNumConverter::roman2dec('DCCXXIX'); //729

SYSTEM REQUIREMENTS
-------------------
PHP 5 or later.

LICENSE
-------
The files in this archive are released under the GNU General Public License.
You can find a copy of this license in LICENSE.txt.
  Files folder image Files  
File Role Description
Files folder imagelibs (1 file, 1 directory)
Files folder imagetests (2 files)
Accessible without login Plain text file demo.php Example Demo script.
Accessible without login Plain text file LICENSE.txt Lic. License
Accessible without login Plain text file README.txt Doc. Readme

  Files folder image Files  /  libs  
File Role Description
Files folder imageDec2RomanNumConverter (1 file)
  Accessible without login Plain text file Dec2RomanNumConverter.php Class Class for converting decimal numbers to Roman numberals and vice-versa.

  Files folder image Files  /  libs  /  Dec2RomanNumConverter  
File Role Description
  Accessible without login Plain text file Exception.php Class Dec2RomanNumConverter exception class.

  Files folder image Files  /  tests  
File Role Description
  Accessible without login Plain text file Dec2RomanNumConverterTest.php Test Dec2RomanNumConverter tests.
  Accessible without login Plain text file TestHelper.php Aux. Setting up testing environment.

 Version Control Unique User Downloads Download Rankings  
 0%
Total:237
This week:0
All time:7,505
This week:1,099Up