google/cloud-common-protos
Generated PHP Protocol Buffer classes shared across Google Cloud APIs (part of google-cloud-php). Install via Composer as google/cloud-common-protos to use stable, Apache-2.0 licensed common proto message types in your apps.
// Example: Bind a LoggingClient with protobuf-backed audit logs
$this->app->singleton(LoggingClient::class, function ($app) {
return new LoggingClient(['projectId' => config('services.google.cloud.project')]);
});
Google\Logging\Type\HttpRequest) to enrich Laravel logs with HTTP metadata:
$logEntry = new LogEntry();
$logEntry->setHttpRequest(new HttpRequest([
'requestUrl' => request()->fullUrl(),
'requestMethod' => request()->method(),
'userAgent' => request()->userAgent(),
]));
.proto files and generate PHP classes using this package’s dependencies.Key Considerations:
google/protobuf (PHP extension) and grpc/grpc for gRPC. Test in your CI/CD pipeline.ReservationResourceUsage).When to Avoid:
Next Steps:
How can I help you explore Laravel packages today?