2017 © Pedro Peláez
 

utility vat-validation

EU and non EU VAT number validation

image

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

The README.md

EU/Non EU VAT Number Validation

Build Status, (*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)
    • Regex validation

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)

The Versions

01/02 2017

dev-master

9999999-dev

EU and non EU VAT number validation

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Victor Fernandez Saborit

01/02 2017

dev-dev

dev-dev

EU and non EU VAT number validation

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Victor Fernandez Saborit

01/02 2017

v1.0.0

1.0.0.0

EU and non EU VAT number validation

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Victor Fernandez Saborit