respect-validation/docs/Vatin.md
Henrique Moody d8e5f305a7
Remove "malkusch/bav" as a dependency
This packages is not maintained anymore, therefore it should be removed
from our codebase.
2017-11-12 13:59:05 +01:00

633 B

Vatin

  • Vatin(string $countryCode)

Validates VAT identification number according to the defined country.

v::vatin('PL')->validate('1645865777'); // true
v::vatin('PL')->validate('1645865778'); // false
v::vatin('PL')->validate('1234567890'); // false
v::vatin('PL')->validate('164-586-57-77'); // false
v::vatin('PL')->validate('164-58-65-777'); // false

For now this rule only accepts Polish VAT identification number (NIP).

Changelog

Version Description
2.0.0 Created

See also: