PHPackages                             odem/laravel-stackdriver-gcl - 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. odem/laravel-stackdriver-gcl

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

odem/laravel-stackdriver-gcl
============================

Sistema de Storage para Logging en Google Cloud Storage para Laravel 7

v0.0.3(4y ago)08202MITPHP

Since Jan 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/odespitia/laravel-stackdriver-gcl)[ Packagist](https://packagist.org/packages/odem/laravel-stackdriver-gcl)[ RSS](/packages/odem-laravel-stackdriver-gcl/feed)WikiDiscussions main Synced 1mo ago

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

laravel-stackdriver-gcl
=======================

[](#laravel-stackdriver-gcl)

Sistema de Storage para Logging en Google Cloud Storage para Laravel 7.

Este paquete es un `driver` para el registro y la generación de informes de errores para Google Cloud Platform Stackdriver.

Instalación
-----------

[](#instalación)

```
composer require odem/laravel-stackdriver-gcl
```

Agregue un nuevo `driver` en su archivo de configuración `config/logging.php`

```
        'stackdriver' => [
            'driver' => 'custom',
            'via' => \LaravelStackdriverGcl\StackdriverGoogle::class,
            'logName' => env('GCP_LOG_NAME'),
            'labels' => [
                'application' => env('APP_NAME'),
                'environment' => env('APP_ENV'),
            ],
            'level' => 'debug',
            'projectId' => env('GCP_PROJECT_ID'),
            'credentials' => env('GCP_CREDENTIALS')
        ]
```

### Autenticación

[](#autenticación)

El cliente de Google utiliza algunos métodos para determinar cómo debe autenticarse con la API de Google.

Configurar las varibales enviroment `GCP_PROJECT_ID` y `GCP_CREDENTIALS` y `GCP_LOG_NAME` de la siguiente forma:

```
GCP_PROJECT_ID=EL ID DE PROYECTO DE GOOGLE CLOUD
GCP_CREDENTIALS=RUTA AL ARCHIVO CREDIENTIAL.JSON
GCP_LOG_NAME=SU NOMBRE DE REGISTRO

```

### Habilitación

[](#habilitación)

Se debe configurar la variable enviroment `LOG_CHANNEL` de la siguiente forma:

```
LOG_CHANNEL=stackdriver

```

### Logs Personalizado

[](#logs-personalizado)

Agregar en `app/Exceptions/Handler.php`

```
use LaravelStackdriverGcl\StackdriverLogging;

```

En la función `report` agregar.

```
$log = new StackdriverLogging();
$log->customsLogs($exception);

```

Mientras se ejecute en entornos de **Google Cloud Platform** como **Google Compute Engine**, **Google App Engine** y **Google Kubernetes Engine**, no se necesita ningún trabajo adicional. El ID del proyecto y las credenciales se descubren automáticamente.

Para mas información consultar [Authentication documentation for the Google Cloud Client Library for PHP](https://github.com/googleapis/google-cloud-php/blob/master/AUTHENTICATION.md)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~118 days

Total

3

Last Release

1718d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/668d5fc0289c21a2ed4aba44445c03e532acab5726b56728404e55fe8ec280b8?d=identicon)[odespitia](/maintainers/odespitia)

---

Top Contributors

[![mateotomas2](https://avatars.githubusercontent.com/u/36208432?v=4)](https://github.com/mateotomas2 "mateotomas2 (6 commits)")[![odespitia](https://avatars.githubusercontent.com/u/39525526?v=4)](https://github.com/odespitia "odespitia (3 commits)")

### Embed Badge

![Health badge](/badges/odem-laravel-stackdriver-gcl/health.svg)

```
[![Health](https://phpackages.com/badges/odem-laravel-stackdriver-gcl/health.svg)](https://phpackages.com/packages/odem-laravel-stackdriver-gcl)
```

###  Alternatives

[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[google/cloud-error-reporting

Stackdriver Error Reporting Client for PHP

204.2M24](/packages/google-cloud-error-reporting)[gluedev/laravel-stackdriver

Enables logging, tracing and error reporting to Google Stackdriver for the Laravel framework

4865.6k](/packages/gluedev-laravel-stackdriver)[codemix/yii2-streamlog

A Yii 2 log target for streams in URL format

531.4M6](/packages/codemix-yii2-streamlog)[codeinternetapplications/monolog-stackdriver

Stackdriver handler for Monolog.

14181.7k](/packages/codeinternetapplications-monolog-stackdriver)

PHPackages © 2026

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