friendsofhyperf / grpc-validation
The GRPC validation component for Hyperf.
Fund package maintenance!
huangdijia
hdj.me/sponsors
Requires
- hyperf/context: ~3.1.0
- hyperf/di: ~3.1.0
- hyperf/grpc-server: ~3.1.0
- hyperf/validation: ~3.1.0
- dev-main / 3.1.x-dev
- v3.1.48
- v3.1.41
- v3.1.33
- v3.1.31
- v3.1.28.1
- v3.1.27
- v3.1.19
- v3.1.17
- v3.1.5
- v3.1.1
- v3.1.0
- v3.1.0-rc.4
- v3.1.0-beta.20
- v3.1.0-beta.15
- v3.1.0-beta.9
- v3.1.0-beta.1
- 3.0.x-dev
- v3.0.112
- v3.0.85
- v3.0.80
- v3.0.70
- v3.0.55
- v3.0.52
- v3.0.51
- v3.0.42
- v3.0.35
- v3.0.14
- v3.0.5
- v3.0.2
- v3.0.0
- v3.0.0-rc.30
- v3.0.0-rc.16
- v3.0.0-rc.9
- v3.0.0-rc.7
- v3.0.0-rc.4
- v3.0.0-rc.2
- v3.0.0-beta35
- v3.0.0-beta34
- v3.0.0-beta33
- v3.0.0-beta32
- v3.0.0-beta29
- v3.0.0-beta28
- v3.0.0-beta27
- v3.0.0-beta26
- v3.0.0-beta25
- v3.0.0-beta24
- v3.0.0-beta23
- v3.0.0-beta22
- v3.0.0-beta21
- v3.0.0-beta20
- v3.0.0-beta19
- v3.0.0-beta18
- v3.0.0-beta17
- v3.0.0-beta16
- v3.0.0-beta15
- v3.0.0-beta14
- v3.0.0-beta13
- v3.0.0-beta12
- v3.0.0-beta11
- v3.0.0-beta10
- v3.0.0-beta9
- v3.0.0-beta8
- v3.0.0-beta7
This package is auto-updated.
Last update: 2024-12-04 02:41:31 UTC
README
The GRPC validation component for Hyperf.
Installation
composer require friendsofhyperf/grpc-validation
Usage
<?php use FriendsOfHyperf\GrpcValidation\Annotation; #[Validation(rules: [ 'name' => 'required|string|max:10', 'message' => 'required|string|max:500', ])] public function sayHello(HiUser $user) { $message = new HiReply(); $message->setMessage("Hello World"); $message->setUser($user); return $message; }