PHPackages                             lhduc/laravel-gcp-logging - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. lhduc/laravel-gcp-logging

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

lhduc/laravel-gcp-logging
=========================

Reusable Google Cloud Logging integration for Laravel applications.

v1.1.0(2mo ago)01.3k1MITPHPPHP ^8.2

Since Oct 15Pushed 2mo agoCompare

[ Source](https://github.com/lhduc/laravel-gcp-logging)[ Packagist](https://packagist.org/packages/lhduc/laravel-gcp-logging)[ RSS](/packages/lhduc-laravel-gcp-logging/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (4)Versions (4)Used By (0)

Laravel GCP Logging
-------------------

[](#laravel-gcp-logging)

Reusable package that wires a Google Cloud Logging channel into Laravel, adds correlation IDs, and captures HTTP client, queue, and request telemetry.

### Installation

[](#installation)

```
composer require lhduc/laravel-gcp-logging
```

### Publish configuration

[](#publish-configuration)

```
php artisan vendor:publish --provider="Lhduc\LaravelGcpLogging\Providers\GoogleLoggingServiceProvider" --tag=config
```

Configure `config/google-logging.php` or the matching environment variables (`GOOGLE_PROJECT_ID`, `GOOGLE_APPLICATION_CREDENTIALS`, `GOOGLE_APPLICATION_NAME`).

### Enable channel

[](#enable-channel)

Update `config/logging.php`:

```
'channels' => [
    // ...
    'google' => [
        'driver' => 'custom',
        'via' => Lhduc\LaravelGcpLogging\Logging\GoogleLogger::class,
        'level' => env('LOG_LEVEL', 'debug'),
        'project_id' => env('GOOGLE_APPLICATION_PROJECT'),
        'key_file_path' => env('GOOGLE_APPLICATION_CREDENTIALS'),
        'log_name' => env('GOOGLE_APPLICATION_NAME', 'application'),
        'excluded_routes' => [
            'api/health-check',
        ],
    ],
],
```

Requests hitting the `api` middleware group automatically receive the correlation middleware. Queue jobs and outbound HTTP client calls will include the correlation identifier and emit structured entries in Google Cloud Logging.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance86

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~192 days

Total

2

Last Release

70d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2323238?v=4)[Duc Le](/maintainers/lhduc)[@lhduc](https://github.com/lhduc)

---

Top Contributors

[![lhduc-1bit](https://avatars.githubusercontent.com/u/138468355?v=4)](https://github.com/lhduc-1bit "lhduc-1bit (5 commits)")[![lhduc](https://avatars.githubusercontent.com/u/2323238?v=4)](https://github.com/lhduc "lhduc (1 commits)")

### Embed Badge

![Health badge](/badges/lhduc-laravel-gcp-logging/health.svg)

```
[![Health](https://phpackages.com/badges/lhduc-laravel-gcp-logging/health.svg)](https://phpackages.com/packages/lhduc-laravel-gcp-logging)
```

###  Alternatives

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[open-telemetry/opentelemetry-auto-laravel

OpenTelemetry auto-instrumentation for Laravel

592.7M9](/packages/open-telemetry-opentelemetry-auto-laravel)[google/cloud-error-reporting

Stackdriver Error Reporting Client for PHP

214.4M30](/packages/google-cloud-error-reporting)[api-platform/laravel

API Platform support for Laravel

58171.8k14](/packages/api-platform-laravel)[nightowl/agent

NightOwl monitoring agent — collects telemetry from laravel/nightwatch and writes to PostgreSQL

771.7k](/packages/nightowl-agent)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
