mirror of
https://github.com/Respect/Validation.git
synced 2026-03-16 15:25:45 +01:00
27 lines
606 B
Markdown
27 lines
606 B
Markdown
# IdentityCard
|
|
|
|
- `IdentityCard(string $countryCode)`
|
|
|
|
Validates Identity Card numbers according to the defined country.
|
|
|
|
```php
|
|
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).
|
|
|
|
## Changelog
|
|
|
|
Version | Description
|
|
--------|-------------
|
|
1.1.0 | Created
|
|
|
|
***
|
|
See also:
|
|
|
|
- [Pesel](Pesel.md)
|
|
- [SubdivisionCode](SubdivisionCode.md)
|
|
- [Vatin](Vatin.md)
|