mirror of
https://github.com/Respect/Validation.git
synced 2024-06-26 17:20:16 +02:00
The only Identity Card we have is the Polish one, that said it makes more sense to have a specific rule that only validates that, rather than having a "IdentityCard" rule that only accepts one value. Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
30 lines
532 B
Markdown
30 lines
532 B
Markdown
# PolishIdCard
|
|
|
|
- `PolishIdCard()`
|
|
|
|
Validates whether the input is a Polish identity card (Dowód Osobisty).
|
|
|
|
```php
|
|
v::polishIdCard()->validate('AYW036733'); // true
|
|
v::polishIdCard()->validate('APH505567'); // true
|
|
v::polishIdCard()->validate('APH 505567'); // false
|
|
v::polishIdCard()->validate('AYW036731'); // false
|
|
```
|
|
|
|
## Categorization
|
|
|
|
- Identifications
|
|
|
|
## Changelog
|
|
|
|
Version | Description
|
|
--------|-------------
|
|
2.0.0 | Created
|
|
|
|
***
|
|
See also:
|
|
|
|
- [Nip](Nip.md)
|
|
- [Pesel](Pesel.md)
|
|
- [SubdivisionCode](SubdivisionCode.md)
|