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.
defaultfield option- When using proto3 syntax, the
defaultfield option is not allowed and was removed from the following rules:StringRulesfieldstrict. The default value wastrue.
- When using proto3 syntax, the
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
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2023-12-09