Back to Validation

Pesel

docs/validators/Pesel.md

3.1.11.4 KB
Original Source
<!-- SPDX-License-Identifier: MIT SPDX-FileCopyrightText: (c) Respect Project Contributors SPDX-FileContributor: Alexandre Gomes Gaigalas <[email protected]> SPDX-FileContributor: Henrique Moody <[email protected]> SPDX-FileContributor: Tomasz Regdos <[email protected]> -->

Pesel

  • Pesel()

Validates PESEL (Polish human identification number).

php
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

ModeTemplate
default{{subject}} must be a PESEL
inverted{{subject}} must not be a PESEL

Template placeholders

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

Categorization

  • Identifications

Changelog

VersionDescription
3.0.0Templates changed
1.1.0Created

See Also