gsols/validate 问题修复 & 功能扩展

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

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

gsols/validate

最新稳定版本:0.1.1

Composer 安装命令:

composer require gsols/validate

包简介

PHP Protobuf implementation for protoc-gen-validate

README 文档

README

This is a PHP implementation for protoc-gen-validate. It provides validation rules for protobuf messages. This is only the compiled version of the PHP files. The source files can be found at bufbuild/protoc-gen-validate

Note

This is not an official implementation. It is only a compiled version of the PHP files from the official repository. And since the official repository was made using proto2 syntax, this implementation has removed the following to make it compatible with proto3 syntax.

This is intended for internal use only. If you want to use this, please use it at your own risk. This package is not maintained and will not be updated.

  • default field option
    • When using proto3 syntax, the default field option is not allowed and was removed from the following rules: StringRules field strict. The default value was true.

Requirements

  • PHP 7 or 8
  • Google Common Protos 4.5

Installation

Use composer to install the dependencies.

composer install

Usage

Include the necessary classes from the src/Validate and src/GPBMetadata directories in your PHP files to use the validation rules.

License

This project is licensed under the Apache 2.0 license. See the LICENSE file for details.

统计信息

  • 总下载量: 1.95k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2023-12-09