google/cloud-error-reporting
Idiomatic PHP client for Google Cloud Error Reporting (Stackdriver). Install via Composer to report and manage application errors, with REST or gRPC support. Part of the Google Cloud PHP library; see docs for auth, samples, and debugging.
Pros:
App\Exceptions\Handler) by surfacing errors to a centralized monitoring system.ErrorGroup payloads, improving debugging granularity.Cons:
ErrorReporterContract).Log facade or Sentry; requires manual instrumentation (see Integration Approach).App\Exceptions\Handler::render() or report() methods to forward exceptions to Stackdriver.Monolog (Laravel’s logging driver) by treating errors as log entries with enhanced metadata.google/cloud-core (≥v2.0) and grpc/grpc (for gRPC). Add ~5MB to deployment footprint but minimal runtime overhead.google/auth library, which may require IAM setup (service accounts for GCP).Mockery or Laravel’s MockFacade. Example:
$mockClient = Mockery::mock(Google\Cloud\ErrorReporting\V1beta1\Client\ErrorGroupServiceClient::class);
$mockClient->shouldReceive('reportError')->once();
How can I help you explore Laravel packages today?