Verify the validity of a VAT number
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 17 commits ahead, 7 commits behind herdani:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src/Snowcap/Vat
.gitignore
README.md
composer.json

README.md

Vat Validation

About

Vat-Validation is a PHP class allowing you to

  • Validate a VAT number
  • Retrieve information like the name or the address of the company

The data is extracted from a European Commission webservice

It actually only works for European countries

Usage

See examples/example.php

Some available methods

$validation->isValid()
$validation->getName()
$validation->getDenomination()
$validation->getAddress() 

Requirements

  • PHP 5.3>
  • Soap extension enabled

Disclaimer

Take 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