taniko/romans

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

This package is not auto-updated.

Last update: 2024-09-24 11:14:50 UTC


README

罗马数字解析器

Build Status

安装

composer require taniko/romans

用法

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