Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.16 KB

File metadata and controls

49 lines (34 loc) · 1.16 KB

Version

  • Version()

Validates version numbers using Semantic Versioning.

v::version()->assert('1.0.0');
// Validation passes successfully

Templates

Version::TEMPLATE_STANDARD

Mode Template
default {{subject}} must be a version number
inverted {{subject}} must not be a version number

Template placeholders

Placeholder Description
subject The validated input or the custom validator name (if specified).

Categorization

  • Strings

Changelog

Version Description
3.0.0 Templates changed
0.3.9 Created

See Also