yii2-json-rpc-2.0

时间:2021-05-10 20:53:16
【文件属性】:
文件名称:yii2-json-rpc-2.0
文件大小:22KB
文件格式:ZIP
更新时间:2021-05-10 20:53:16
PHP ##用于Yii2的 ,具有对请求和响应数据的严格类型验证 目录 CORS支持 验证功能: 验证必需的参数(如果没有默认值) 验证参数类型2.1使用DTO作为结构化类型2.2将方括号用于字符串类型,例如string [],int [],bool []或DTO:ClassName [] 验证器:3.1 @notNull标记拒绝空值(使其成为必需)3.2 @inArray标记限制诸如@inArray [“ red”,“ brown”,“ yellow”]之类的值。 仅适用于string和int数据类型。 3.3 @minSize&@maxSize限制字符串的长度或数字的值。 使用 4个步骤中最简单的使用方法: 通过作曲家安装 在./composer.json中添加到'require'部分 "cranetm/yii2-json-rpc-2.0" : "1.*" 并在控制台/终
【文件预览】:
yii2-json-rpc-2.0-master
----composer.json(576B)
----JsonRpc2()
--------Validator()
--------Dto.php(857B)
--------extensions()
--------Exception.php(701B)
--------Dto()
--------Controller.php(14KB)
--------Validator.php(2KB)
----NOTICE.md(128B)
----LICENSE.md(10KB)
----README.md(14KB)

网友评论