A basic calculator for roman numerals from I (1)
to MMMCMXCIX (3999)
.
use RomanNumeralsCalculator\Application\SumRomanNumerals;
$calc = SumRomanNumerals::create();
$result = $calc->execute('XIX', 'xxiii'); // 19 + 23
$result->arabicNumeral(); // 42
$result->romanNumeral(); // "XLII"
// Any number of arguments can be passed in
$anotherResult = $calc->execute('I', 'II', 'III', 'IV', 'V', ...);
"Vinculum"-numbers (> 3999) are currently not supported.