sadi01/yii2-iran-national-code-validator
Composer 安装命令:
composer require sadi01/yii2-iran-national-code-validator
包简介
Validates that the attribute value is a valid Iran national code.
README 文档
README
NationalCodeValidator validates that the attribute value is a valid Iran national code.
Installation
The preferred way to install this extension is through composer.
Either run console command
composer require sadi01/yii2-iran-national-code-validator "*"
Or add the package to the require section of your composer.json file:
{
"require": {
"sadi01/yii2-iran-national-code-validator": "*"
}
}
then run composer update.
Usage
Once the validator is installed, simply use it in your model's rules :
public function rules() { return [ ['national_code', NationalCodeValidator::class], ]; }
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2022-03-24