ibrahimmomani / numeralstool
Simple arabic-roman numerals format convert handler.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ibrahimmomani/numeralstool
Requires
- php: >=5.5.9
Requires (Dev)
- phpunit/phpunit: ^5.2
This package is not auto-updated.
Last update: 2025-10-03 23:19:31 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