macgyer/yii2-uuid-validator
最新稳定版本:1.0.1
Composer 安装命令:
composer require macgyer/yii2-uuid-validator
包简介
UUID validator for Yii2
README 文档
README
UUID validator for Yii2 framework
This validator was strongly influenced by https://github.com/ramsey/uuid. Thanks @ramsey for your great UUID package.
Installation
The preferred way of installation is through Composer. If you don't have Composer you can get it here: https://getcomposer.org/
To install the package add the following to the require section of your composer.json:
"require": {
"macgyer/yii2-uuid-validator": "*"
},
Usage
Just add the validator to your Model class:
// rules
public function rules()
{
return [
// more rules
['some_property', \macgyer\yii2uuidvalidator\UuidValidator::className()],
];
}
统计信息
- 总下载量: 11.7k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-10-31