Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.42 KB

File metadata and controls

59 lines (41 loc) · 1.42 KB

Pesel

  • Pesel()

Validates PESEL (Polish human identification number).

v::pesel()->assert('21120209256');
// Validation passes successfully

v::pesel()->assert('97072704800');
// Validation passes successfully

v::pesel()->assert('97072704801');
// → "97072704801" must be a PESEL

v::pesel()->assert('PESEL123456');
// → "PESEL123456" must be a PESEL

Templates

Pesel::TEMPLATE_STANDARD

Mode Template
default {{subject}} must be a PESEL
inverted {{subject}} must not be a PESEL

Template placeholders

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

Categorization

  • Identifications

Changelog

Version Description
3.0.0 Templates changed
1.1.0 Created

See Also