bolivir/vat
最新稳定版本:v1.0.0
Composer 安装命令:
composer require bolivir/vat
包简介
A package for validating EU VAT numbers, checking their format and existence.
README 文档
README
VAT
A package for validating EU VAT numbers, checking their format and existence.
List of available clients
- ✔ VIES
Installation
This package can be installed via composer:
$ composer require bolivir/vat
How to use
Validate the format
The method validateFormat will check the format for a given VAT number. It will not check the existence!
Example:
$VAT = new \Bolivir\Vat\Vat(); $response = $VAT->validateFormat('FR12345678901');
Calling the validateFormat method will return a VatFormatValidationResponse
Bolivir\Vat\VatFormatValidationResponse { -countryCode: string -vatNumber: string -valid: boolean }
Validate the existence
The method validate will check the vat number for real existence, it will check it by the VIES service
Example:
$VAT = new \Bolivir\Vat\Vat(); echo $VAT->validate('FR12345678901');
Calling the validate method will return a VatValidationResponse
Bolivir\Vat\VatValidationResponse { -countryCode: string -vatNumber: string -requestDate: string -valid: boolean -name: string -address: string }
Change log
Please see CHANGELOG for more information on what has been changed recently.
Security
If you discover any security related issues, please email mosselmanricardo@gmail.com instead of using the issue tracker.
Credits
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-23