Skip to content

Provides a simple decimal/roman number converter

License

Notifications You must be signed in to change notification settings

crazycodr/roman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ROMAN

Latest Version Software License Build Status Total Downloads

Roman is a simple library to convert numbers from decimal to roman and vice versa.

Usage

$converter = new CrazyCodr\Converters\Roman();
$roman = $converter->toRoman(4999); //Outputs MMMMCMXCIX
$number = $converter->fromRoman('MMMMCMXCIX'); //Outputs 4999

System Requirements

You need PHP >= 5.0 although you should be using at least PHP >= 5.6 by now!

Note that this library is only tested against PHP 5.6, 7.0 and HHVM but should work in any version!

Install

Install Roman using Composer.

$ composer require crazycodr/roman

Testing

Roman has a PHPUnit test suite and a coding style compliance test suite using PHP CS Fixer. To run the tests, run the following command from the project folder.

$ composer test

License

The MIT License (MIT). Please see LICENSE for more information.

About

Provides a simple decimal/roman number converter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages