-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Edwin Hermans
committed
Jun 23, 2011
1 parent
9caf05c
commit b20d47c
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# 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 ## | ||
|
||
require_once('vatValidation.class.php'); | ||
$vatValidation = new vatValidation( array('debug' => false)); | ||
$vatValidation->check($countryCode, $vatNumber)); | ||
|
||
Your instance can now access the following methods: | ||
|
||
$vatValidation->isValid() | ||
$vatValidation->getName() | ||
$vatValidation->getDenomination() | ||
$vatValidation->getAddress() | ||
|
||
You'll find an example in the example.php file | ||
|
||
## Requirements ## | ||
|
||
PHP with Soap 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 |