PHP code example of taniko / romans
1. Go to this page and download the library: Download taniko/romans library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
taniko / romans example snippets
use Taniko\Romans\Parser;
Parser::toInt('MMXVII'); // 2017
Parser::toInt('MMⅩVII'); // 2017 (Ⅹ is U+2169)
Parser::toRoman(2017); // MMXVII