eufaturo/vat-number-validator
Composer 安装命令:
composer require eufaturo/vat-number-validator
包简介
PHP Vat Number Validator
README 文档
README
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.
- Check out our contributing guide
- Look at our code of conduct
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.75k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-06