rocketfellows/ie-vat-format-validator
最新稳定版本:v1.0.0
Composer 安装命令:
composer require rocketfellows/ie-vat-format-validator
包简介
README 文档
README
This component provides Ireland vat number format validator.
Implementation of interface rocketfellows\CountryVatFormatValidatorInterface\CountryVatFormatValidatorInterface
Depends on https://github.com/rocketfellows/country-vat-format-validator-interface
Installation
composer require rocketfellows/ie-vat-format-validator
Usage example
Valid Ireland vat number:
$validator = new IEVatFormatValidator(); $validator->isValid('IE1234567A'); $validator->isValid('IE1A34567A'); $validator->isValid('IE1234567AA'); $validator->isValid('1234567A'); $validator->isValid('1A34567A'); $validator->isValid('1234567AA');
Returns:
true true true true true true
Invalid Ireland vat number:
$validator = new IEVatFormatValidator(); $validator->isValid('IE1234567AAA'); $validator->isValid('IE1A34567AA'); $validator->isValid('123456789'); $validator->isValid('DE1A34567A'); $validator->isValid('DE1234567AA');
false false false false false
Contributing
Welcome to pull requests. If there is a major changes, first please open an issue for discussion.
Please make sure to update tests as appropriate.
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-12