Validate VAT identification numbers

Installs: 23 023

Dependents: 4

Suggesters: 0

Stars: 38

Watchers: 7

Forks: 8

Open Issues: 1

1.3.1 2015-05-11 14:32 UTC


Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version

A small PHP >= 5.3 library for validating VAT identification numbers (VATINs).


This library is available on Packagist:

$ composer require ddeboer/vatin:@stable

If you want to use this library in a Symfony2 application, you can use the VatinBundle instead.


Validate a VAT number’s format:

$validator = new \Ddeboer\Vatin\Validator();
$bool = $validator->isValid('NL123456789B01');

Additionally check whether the VAT number is in use, with a call to the VAT Information Exchange System (VIES) SOAP web service:

$validator = new \Ddeboer\Vatin\Validator();
$bool = $validator->isValid('NL123456789B01', true);