Skip to main content
Grpcavel Logo

Grpcavel

Modern gRPC Framework for Laravel

Write Code, Not Protos

With Grpcavel's code-first approach, you define your gRPC services using standard PHP classes and attributes. No need to manually write or maintain complex .proto files.

Simply annotate your methods, and Grpcavel will handle the generation and compilation of protobuf files automatically.

app/Grpc/Services/UserService.php
#[GrpcService]
class UserService
{
#[GrpcMethod]
public function getUser(GetUserRequest $request): UserResponse
{
$user = User::findOrFail($request->id);

return UserResponse::fromModel($user);
}
}
💻

Code-First Approach

Define your services and DTOs in pure PHP. Grpcavel handles the protobuf generation and compilation automatically.

🏗️

Laravel Native

Full support for Laravel validation, middleware, service container, and Eloquent models within your gRPC services.

High Performance

Built on top of RoadRunner for a persistent worker model, providing extreme throughput and low latency.