PHPackages                             silverback/yii-google-cloud-error-reporting - 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. silverback/yii-google-cloud-error-reporting

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

silverback/yii-google-cloud-error-reporting
===========================================

1.0.0(7y ago)013PHP

Since Jul 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/silverbackstudio/yii-stackdriver)[ Packagist](https://packagist.org/packages/silverback/yii-google-cloud-error-reporting)[ RSS](/packages/silverback-yii-google-cloud-error-reporting/feed)WikiDiscussions master Synced 2d ago

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

Yii 1.x - Google Cloud (Stackdriver) Monitoring
===============================================

[](#yii-1x---google-cloud-stackdriver-monitoring)

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

[](#installation)

Clone this repository in `protected/extensions/yii-stackdriver`.

Launch a `composer update` to download required dependencies.

Config
------

[](#config)

Add the log route to CLogRouter to pipe logs in Google Cloud Logging.

```
'log'=>array(
	'class'=>'CLogRouter',
	'routes'=>array(
		array(
			'class'=>'ext.yii-stackdriver.StackdriverLogRoute',
			'levels'=>'error, warning, info, profile, debug',

			// override error severity for some exceptions
			'errorSeverity' => array(
				'exception.CHttpException.404' => 'info',
			)
		),
		...
	)
)
```

Customize the class for error handling in config.

```
'errorHandler'=>array(
	// use 'site/error' action to display errors
	'class'=>'ext.yii-stackdriver.StackdriverErrorHandler',
	'errorAction'=>'site/error',

	// do not consider 404 as errors/exceptions
	'skip404' => true,
),
```

Authorize the GCE VM service account with the following privileges:

- Error Reporting Author
- Logs Author

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Unknown

Total

1

Last Release

2870d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a82a47436ceac89bbaeb95a8367354273e56082b8bbbaa8c50ababaf6032d77?d=identicon)[brandomeniconi](/maintainers/brandomeniconi)

---

Tags

googlegoogle-cloudgoogle-cloud-loggingloggingphpstackdriveryii

### Embed Badge

![Health badge](/badges/silverback-yii-google-cloud-error-reporting/health.svg)

```
[![Health](https://phpackages.com/badges/silverback-yii-google-cloud-error-reporting/health.svg)](https://phpackages.com/packages/silverback-yii-google-cloud-error-reporting)
```

###  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)
