- Validate a VAT number
- EU VAT number validation
- 2 validation levels
- Regex validation
- EU commission VIES service validation *If the service is down only the regex validation will be done
- 2 validation levels
- Non EU VAT number validation (South Korean, South Africa, New Zealand, Switzerland and Iceland)
- Regex validation
$validator = (new ValidatorFactory())->makeValidator($countryCode)
$validator->setVatNumber($vatNumber)
$validator->isValid()
$validator = EUValidator()
$validator->setCountryCode($countryCode)
$validator->setVatNumber($vatNumber)
$validator->isValid()
$validator = NonEUValidator()
$validator->setCountryCode($countryCode)
$validator->setVatNumber($vatNumber)
$validator->isValid()
- PHP 5.6 >=
- Soap extension enabled
Have a look at http://ec.europa.eu/taxation_customs/vies/viesdisc.do to know when/how you're allowed to use this service and his information