PHP Classes

Dec2RomanNumConverter: Convert numbers between decimal and roman

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 256 All time: 7,852 This week: 126Up
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: ???
Age: ???
All time rank: 957
Week rank: 287 Up

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 (7)  
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 (7)  /  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 (7)  /  libs  /  Dec2RomanNumConverter  
File Role Description
  Accessible without login Plain text file Exception.php Class Dec2RomanNumConverter exception class.

  Files folder image Files (7)  /  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.

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:256
This week:0
All time:7,852
This week:126Up