PHPackages                             inquid/yii2-google-debugger - 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. inquid/yii2-google-debugger

ActiveYii2-extension[Logging &amp; Monitoring](/categories/logging)

inquid/yii2-google-debugger
===========================

Use Google Cloud Logger into your Yii projects

v2(4y ago)212.0k↓14.3%MITPHP

Since Feb 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/inquid/yii2-google-debugger)[ Packagist](https://packagist.org/packages/inquid/yii2-google-debugger)[ RSS](/packages/inquid-yii2-google-debugger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (7)Used By (0)

 [ ![Yii Framework](https://camo.githubusercontent.com/944b725bf848a55f1cee1bcc6f951c5570775eb4eaeb19669a0789432809d18c/687474703a2f2f7374617469632e7969696672616d65776f726b2e636f6d2f66696c65732f6c6f676f2f7969692e706e67) ](http://www.yiiframework.com/)

[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=contact@inquid.co&item_name=Yii2+extensions+support&item_number=22+Campaign&amount=5%2e00&currency_code=USD)

Google Debugger for Yii
=======================

[](#google-debugger-for-yii)

Use Google Cloud Logger into your Yii projects

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist inquid/yii2-google-debugger "*"

```

or add

```
"inquid/yii2-google-debugger": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply generate a service account with Cloud Debugger Agent permissions and configure your target as the following:

```
        'log' => [
            'traceLevel' => YII_DEBUG ? 3 : 0,
            'targets' => [
                'googleCloud' => [
                    'class' => 'inquid\google_debugger\GoogleCloudLogger',
                    'categories' => ['cat1','cat2'], //Your categories to log
                    'levels' => ['info', 'trace', 'warning', 'error'],
                    'except' => ['yii\web\HttpException:*', 'yii\i18n\I18N\*'],
                    'prefix' => function () {
                        $url = !Yii::$app->request->isConsoleRequest ? Yii::$app->request->getUrl() : null;
                        return sprintf('[%s][%s]', Yii::$app->id, $url);
                    },
                    'projectId' => 'project-id',
                    'loggerInstance' => 'instance-log',
                    'clientSecretPath' => '../google_credentials.json' //path to your service account credentials
                ]
            ],
        ],
```

And thats it! log as you may log using Yii

```
Yii::debug('start calculating average revenue',GoogleCloudLogger::CATEGORY);
Yii::warning('Warning');
Yii::info('Info');
Yii::error('Error');
```

And check them in [https://console.cloud.google.com/logs/viewer?project=your\_project\_id](https://console.cloud.google.com/logs/viewer?project=your_project_id)

SUPPORT
-------

[](#support)

[![paypal](https://camo.githubusercontent.com/e1ff554a09e8e92bef25abc553ff05b88f45afd695877cf12f3a46558ef65b2e/68747470733a2f2f7777772e70617970616c6f626a656374732e636f6d2f656e5f55532f692f62746e2f62746e5f646f6e61746543435f4c472e676966)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=contact@inquid.co&item_name=Yii2+extensions+support&item_number=22+Campaign&amount=5%2e00&currency_code=USD)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~239 days

Recently: every ~299 days

Total

6

Last Release

1810d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1505641?v=4)[Luis Gonzalez](/maintainers/gogl92)[@gogl92](https://github.com/gogl92)

---

Top Contributors

[![gogl92](https://avatars.githubusercontent.com/u/1505641?v=4)](https://github.com/gogl92 "gogl92 (15 commits)")

---

Tags

google-cloudyii2yii2-extensiongoogledebuggerloggeryii2extensiontargetgoogle cloud

### Embed Badge

![Health badge](/badges/inquid-yii2-google-debugger/health.svg)

```
[![Health](https://phpackages.com/badges/inquid-yii2-google-debugger/health.svg)](https://phpackages.com/packages/inquid-yii2-google-debugger)
```

###  Alternatives

[lav45/yii2-activity-logger

Tools to store user activity log for Yii2

3456.3k](/packages/lav45-yii2-activity-logger)[mito/yii2-sentry

Yii 2 extension for Sentry

92377.7k](/packages/mito-yii2-sentry)[sammaye/yii2-audittrail

A port of audit trail

39408.2k](/packages/sammaye-yii2-audittrail)[apollo11/yii2-logger

Log application errors in slack channel

1011.4k1](/packages/apollo11-yii2-logger)

PHPackages © 2026

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