itemvirtual/vat-validate
Composer 安装命令:
composer require itemvirtual/vat-validate
包简介
Validate European VAT numbers
README 文档
README
Laravel package
Installation
You can install the package via composer:
composer require itemvirtual/vat-validate
Usage
Use the VatValidate Facade for all methods
use Itemvirtual\VatValidate\Facades\VatValidate;
· Validate Spanish NIF, NIE, CIF
VatValidate::checkSpanishVat($vat);
or you can do it for a specific type of document
VatValidate::checkNif($vat); VatValidate::checkNie($vat); VatValidate::checkSpecialNie($vat); VatValidate::checkCif($vat);
· Validate European VAT
VatValidate::checkEuropeanVat($vat, $countryCode);
· VIES Validation
VatValidate::checkVies($vat, $countryCode);
· Helper methods
Get VAT number formatted with country code
VatValidate::getFullFormatedVat($vat, $countryCode);
· Example VAT
$exampleVats = [ 'AT' => 'ATU12345678', 'BE' => 'BE0123456789', 'BG' => 'BG123456789', 'CY' => 'CY12345678A', 'CZ' => 'CZ12345678', 'DE' => 'DE123456789', 'DK' => 'DK12345678', 'EE' => 'EE101234567', 'GR' => 'EL123456789', 'ES' => 'ESX1234567L', 'FI' => 'FI12345678', 'FR' => 'FRAB123456789', 'GB' => 'GB123456789', 'HR' => 'HR12345678901', 'HU' => 'HU12345678', 'IE' => 'IE1A23456B', 'IT' => 'IT12345678901', 'LV' => 'LV12345678901', 'LT' => 'LT123456789', 'LU' => 'LU12345678', 'MT' => 'MT12345678', 'NL' => 'NL123456789B01', 'PL' => 'PL1234567890', 'PT' => 'PT123456789', 'RO' => 'RO123456789', 'SE' => 'SE123456789001', 'SI' => 'SI12345678', 'SK' => 'SK1234567890', ];
Info
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-03-15