taniko/romans

v0.3.0 2017-12-07 06:01 UTC

This package is not auto-updated.

Last update: 2024-12-17 12:11:08 UTC


README

roman numerals parser

Build Status

Installation

composer require taniko/romans

Usage

<?php
use Taniko\Romans\Parser;
Parser::toInt('MMXVII'); // 2017
Parser::toInt('MMⅩVII'); // 2017 (Ⅹ is U+2169)
Parser::toRoman(2017);   // MMXVII