governmentplates/uk-national-insurance-validator
最新稳定版本:1.0.0
Composer 安装命令:
composer require governmentplates/uk-national-insurance-validator
包简介
A simple and fast UK National Insurance Number Validator
README 文档
README
A simple and fast UK National Insurance (N.I.) Number Validator.
Installation
composer require governmentplates/uk-national-insurance-validator
Requirements: PHP 7 or newer.
Usage
<?php use NIValidator\NationalInsurance; $ni = new NationalInsurance('QQ123456C'); $ni->validate(); //validate() returns true if a given number is valid, or false otherwise.
How does it validate a N.I number?
This simple validator follows the logical rules for UK N.I. number formats, as seen in the HMRC Insurance Manual.
Is this safe? Is this going to leak my/or my users N.I. numbers?
Feel free to check the source code (located in the src/ directory).
License
GNU General Public License v3.0.
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2022-09-25