8000 GitHub - eventjet/eventjet-vatin: VAT identification number value object and validation
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

eventjet/eventjet-vatin

Repository files navigation

eventjet-vatin

Build Status Scrutinizer Code Quality Code Coverage

VAT identification number value object and validation

This package uses ddeboer/vatin for validation.

Usage

You can create an instance of Eventjet\Vatin\Vatin directly:

$vatin = new Eventjet\Vatin\Vatin('NL123456789B01');

This checks if the format of the VAT IN is correct. If you also want to check if the number actually exists using VIES, you should use the factory instead:

$validator = new Ddeboer\Vatin\Validator;
$factory = new Eventjet\Vatin\VatinFactory($validator);
$vatin = $factory->create('NL123456789B01');

About

VAT identification number value object and validation

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages

0