Download the PHP package hungthai1401/laravel-grpc-validation without Composer
On this page you can find all versions of the php package hungthai1401/laravel-grpc-validation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hungthai1401/laravel-grpc-validation
More information about hungthai1401/laravel-grpc-validation
Files in hungthai1401/laravel-grpc-validation
Package laravel-grpc-validation
Short Description gRPC Validation for Laravel
License MIT
Informations about the package laravel-grpc-validation
Laravel gRPC Validation
A Laravel package for gRPC validation inspired by friendsofhyperf/grpc-validation. This package provides a seamless way to validate gRPC requests in Laravel applications using Attributes.
Features
- Attribute-based Validation: Utilize PHP Attributes to define validation rules directly on your gRPC service methods.
- Flexible Rule Definition: Supports passing validation rules as an array or using a Laravel
FormRequest
class for more complex validation logic. - PHP Compatibility: Designed to work with PHP 8.0 and above, ensuring modern PHP features and compatibility.
- Strict Standards: Adheres to PSR standards and passes PHPStan at the strictest level for robust code quality.
- Unit Tested: Comprehensive unit tests are included to ensure reliability and maintainability.
- Final Classes and Strict Types: Uses
final
classes and strict type declarations for better code integrity and predictability.
Installation
You can install the package via Composer:
Usage
First of all, you need to set up your gRPC server.
Then you need to define your gRPC service methods with validation attributes. Here's an example:
Contributing
Contributions are welcome! Please feel free to submit a Pull Request or open an Issue on GitHub.
Thanks
License
This package is licensed under the MIT License. See the LICENSE file for more information.
All versions of laravel-grpc-validation with dependencies
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
spiral/roadrunner-grpc Version ^3.0