mikk150/yii2-phone-validator
最新稳定版本:1.1.0
Composer 安装命令:
composer require mikk150/yii2-phone-validator
包简介
yii2 phonenumber validator
README 文档
README
This extension validates phone numbers
It will also format phone number to ITU-T E.164 or any other format that LibPhoneNumber supports(for full support see libphonenumber\PhoneNumberFormat)
Usage
// add this in your model use mikk150\phonevalidator\PhoneNumberValidator; // use the validator in your model rules public function rules() { return [ [['phone'], PhoneNumberValidator::className(), 'country' => 'US'] ]; }
统计信息
- 总下载量: 12.72k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2016-09-24