承接 rocketfellows/ie-vat-format-validator 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

rocketfellows/ie-vat-format-validator

最新稳定版本:v1.0.0

Composer 安装命令:

composer require rocketfellows/ie-vat-format-validator

包简介

README 文档

README

Code Coverage Badge

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-12