Getting Started
Learn how to install Grpcavel and set up your first gRPC service.
Installation
You can install the package via composer:
composer require fadhila36/grpcavel
After installing, run the install command to bootstrap the necessary directories and configuration:
php artisan grpc:install
This command will create:
app/Grpc/Services: Where your service implementations live.app/Grpc/Requests: For request DTOs and validation.app/Grpc/Responses: For response DTOs.config/grpc.php: The main configuration file.proto/: Where generated.protofiles are stored.
First Steps
To get your server running, follow these three steps:
- Create a Service: Define your logic.
- Sync Definitions: Generate the proto files.
- Start Server: Launch the RoadRunner gRPC server.
Next, read about Core Concepts to learn how to define your first service.