eventjet / vatin
Installs: 18 904
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=8.1
- ddeboer/vatin: ^1.3
Requires (Dev)
- eventjet/coding-standard: ^3.12
- infection/infection: ^0.27
- maglnet/composer-require-checker: ^4.0
- phpstan/extension-installer: ^1.2
- phpstan/phpstan: ^1.8
- phpstan/phpstan-phpunit: ^1.1
- phpstan/phpstan-strict-rules: ^1.4
- phpunit/phpunit: ^10.2
- psalm/plugin-phpunit: ^0.18
- vimeo/psalm: ^5.0
README
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');