Roman

February 3, 2026 ยท View on GitHub

  • Roman()

Validates if the input is a Roman numeral.

v::roman()->assert('IV');
// Validation passes successfully

Templates

Roman::TEMPLATE_STANDARD

ModeTemplate
default{{subject}} must be a Roman numeral
inverted{{subject}} must not be a Roman numeral

Template placeholders

PlaceholderDescription
subjectThe validated input or the custom validator name (if specified).

Categorization

  • Numbers

Changelog

VersionDescription
3.0.0Templates changed
2.0.0Exception message refers to Roman "numerals" instead of "numbers"
2.0.0Do not consider empty strings as valid
0.3.9Created

See Also