定制 eufaturo/vat-number-validator 二次开发

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

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

eufaturo/vat-number-validator

Composer 安装命令:

composer require eufaturo/vat-number-validator

包简介

PHP Vat Number Validator

README 文档

README

GitHub Tests Action Status GitHub Code Analysis Action Status Software License Latest Version on Packagist Total Downloads

Introduction

This is a simple yet modern PHP library to validate VAT numbers.

The API is overall simple and returns a true or false boolean.

Code Samples

In order to use this library, you simply need to import and initialize the VatNumberValidator class.

Then just call the validate method and pass the VAT number you want to validate as it's sole argument.

<?php

use Eufaturo\VatNumberValidator\VatNumberValidator;

$validator = new VatNumberValidator();

$isValid = $validator->validate(
    vatNumber: 'PT100000010',
);

Installation

This library is installed via Composer and to install, run the following command.

composer require eufaturo/vat-number-validator

Testing

composer test

Contributing

Thank you for your interest. Here are some of the many ways to contribute.

License

This library is open-sourced software licensed under the MIT license.

Inspiration

This library was inspired by https://github.com/antalaron/vat-number-validator.

统计信息

  • 总下载量: 4.68k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 未知