mirror of
https://github.com/Respect/Validation.git
synced 2024-06-08 08:42:15 +02:00
52614d600d
The current documentation is hosted via GitHub pages rendered by "Couscous". Every time we need a new version of the documentation published we need to manually execute the "couscous". This commit reorganize the documentation to be published to "Read the Docs" because it will also allow us to have documentations per version of the library most importantly provider a search field for the documentation. The documentation will be then published on: https://respect-validation.readthedocs.io/ Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
535 B
535 B
IdentityCard
v::identityCard(string $countryCode)
Validates Identity Card numbers according to the defined country.
v::identityCard('PL')->validate('AYW036733'); // true
v::identityCard('PL')->validate('APH505567'); // true
v::identityCard('PL')->validate('APH 505567'); // false
v::identityCard('PL')->validate('AYW036731'); // false
For now this rule only accepts Polish Identity Card numbers (Dowód Osobisty).
See also: