Skip to content

Instantly share code, notes, and snippets.

@jonathanmaron
Created June 10, 2010 13:03
Show Gist options
  • Save jonathanmaron/432958 to your computer and use it in GitHub Desktop.
Save jonathanmaron/432958 to your computer and use it in GitHub Desktop.
use \Zend\Validator\VATIN;
// syntax only check
$validator = new VATIN();
$validator->isValid('XX0000000000');
// syntax and deep check (uses VATIN validation SOAP service by European Commission)
$validator = new VATIN();
$validator->setDeepCheck(true);
$validator->isValid('XX0000000000');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment