Roman Numerals conversion from Arabic numbers
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
spec/Seniorio
src/Seniorio
.gitignore
LICENSE
README.md
composer.json
composer.lock

README.md

PHP Roman Numerals

Arabic-to-Roman-numerals converter (currently one-way) using regex for a laugh.

require_once __DIR__.'/../vendor/autoload.php';

use Seniorio\Numeralizor;

$numeralizor = new Numeralizor;

echo $numeralizor->arabicToRoman($argv[1])."\n";

exit;

Or:

$ ./bin/roman 10

Warning!

Not a good solution, just a bit of fun with regex.

See comments at https://github.com/seniorio/roman-numerals/blob/master/src/Seniorio/Numeralizor.php for documentation.