定制 bolivir/vat 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bolivir/vat

最新稳定版本:v1.0.0

Composer 安装命令:

composer require bolivir/vat

包简介

A package for validating EU VAT numbers, checking their format and existence.

README 文档

README

License: MIT

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固