ibrahimmomani / numeralstool
Simple arabic-roman numerals format convert handler.
dev-master
2016-02-26 19:23 UTC
Requires
- php: >=5.5.9
Requires (Dev)
- phpunit/phpunit: ^5.2
This package is not auto-updated.
Last update: 2024-09-20 18:23:40 UTC
README
Simple arabic-roman numerals format convert handler.
Installation
Create empty composer.json and place the following in it.
{
"require": {
"php": ">=5.5",
"ibrahimmomani/numeralstool": "dev-master"
}
}
Create your index.php
<?php
require 'vendor/autoload.php';
use Numerals\Numeral;
echo Numeral::factory('arabic', 3333).PHP_EOL; // will output MMMCCCXXXIII
echo Numeral::factory('roman', 'LXVIII').PHP_EOL; // will output 68