persian-validator/national-code
Composer 安装命令:
composer require persian-validator/national-code
包简介
Validates national codes in Iran
README 文档
README
A simple class to validate national codes in Iran.
Install
Via Composer
$ composer require persian-validator/national-code
Usage
Instantiate the class
$nationalCode = NationalCode::make('123456789');
Returns Boolean
$nationalCode->isValid();
Returns Boolean
$nationalCode->notValid();
If national code is valid returns nothing but if it's not valid Exception is thrown!
$nationalCode->validate();
License This library is released under the MIT license.
统计信息
- 总下载量: 139
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-01