macgyer/yii2-uuid-validator 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-10-31