utility vat-validation
EU and non EU VAT number validation
vifer/vat-validation
EU and non EU VAT number validation
- Wednesday, February 1, 2017
- by vifer
- Repository
- 1 Watchers
- 2 Stars
- 2 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 0 % Grown
EU/Non EU VAT Number Validation
, (*1)
About
- 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
- Non EU VAT number validation (South Korean, South Africa, New Zealand, Switzerland and Iceland)
Usage
$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()
Requirements
- PHP 5.6 >=
- Soap extension enabled
Disclaimer
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, (*2)
dev-master
9999999-dev
EU and non EU VAT number validation
Sources
Download
MIT
The Requires
The Development Requires
by
Victor Fernandez Saborit
dev-dev
dev-dev
EU and non EU VAT number validation
Sources
Download
MIT
The Requires
The Development Requires
by
Victor Fernandez Saborit
v1.0.0
1.0.0.0
EU and non EU VAT number validation
Sources
Download
MIT
The Requires
The Development Requires
by
Victor Fernandez Saborit