evertharmeling/vat-client
Composer 安装命令:
composer require evertharmeling/vat-client
包简介
Client library for the VIES/EU web service.
README 文档
README
This libray supports validating a vat number and getting the info about a taxable object. The library uses the http://www.controleerbtwnummer.nl/ API to retrieve the info and validation.
The http://www.controleerbtwnummer.nl/ API relies on the VIES/EU service and thus supports VAT numbers from all EU-countries.
Installation
composer require evertharmeling/vat-client
Usage
It's required to use a PSR-7 supported HTTPClient like guzzle (^6.0) to inject in the Client.
$client = new VIESApi\Client\Client(new GuzzleHttp\Client(), VIESApi\Parser\VATParser()); try { $taxableObject = $client->getInfo('<VATNumber>'); var_dump($taxableObject); catch (TaxableObjectNotFoundException $e) { // VAT number not found }
Roadmap
- Formatter, add formatter who according to the regexes defined in the validator, formats the VAT number
统计信息
- 总下载量: 7.63k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-06-11