PHP code example of jeronimofagundes / php-roman-numbers
1. Go to this page and download the library: Download jeronimofagundes/php-roman-numbers 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/ */
jeronimofagundes / php-roman-numbers example snippets
composer
...
use \Jeronimofagundes\Numbers\Roman\Helper;
...
echo Helper::fromArabic(2019); // prints MMXIX
echo Helper::toArabic('MMXIX'); // prints 2019
...
shell script
git clone https://github.com/jeronimofs/php-roman-numbers.git
cd php-roman-numbers