mirror of
https://github.com/Respect/Validation.git
synced 2024-06-18 05:25:20 +02:00
c522f6235c
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>
568 B
568 B
Nip
Nip(string $countryCode)
Validates whether the input is a Polish VAT identification number (NIP).
v::nip()->validate('1645865777'); // true
v::nip()->validate('1645865778'); // false
v::nip()->validate('1234567890'); // false
v::nip()->validate('164-586-57-77'); // false
v::nip()->validate('164-58-65-777'); // false
Categorization
- Identifications
Changelog
Version | Description |
---|---|
2.0.0 | Created |
See also: