PHPackages                             crassula/google-cloud-error-reporting-bundle - 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. crassula/google-cloud-error-reporting-bundle

ActiveSymfony-bundle[Logging &amp; Monitoring](/categories/logging)

crassula/google-cloud-error-reporting-bundle
============================================

Symfony bundle for Google Cloud Error Reporting

v0.8.0(5y ago)224.0kMITPHPPHP &gt;=7.4CI failing

Since Oct 23Pushed 5y ago11 watchersCompare

[ Source](https://github.com/crassula/google-cloud-error-reporting-bundle)[ Packagist](https://packagist.org/packages/crassula/google-cloud-error-reporting-bundle)[ Docs](https://github.com/crassula/google-cloud-error-reporting-bundle)[ RSS](/packages/crassula-google-cloud-error-reporting-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (11)Versions (14)Used By (0)

CrassulaGoogleCloudErrorReportingBundle
=======================================

[](#crassulagoogleclouderrorreportingbundle)

This bundle provides integration with [Google Cloud Error Reporting](https://cloud.google.com/error-reporting/) in your Symfony project.

**Note:** This bundle uses [Google Cloud Error Reporting for PHP](https://github.com/googleapis/google-cloud-php-errorreporting) package, which currently is in alpha stage, so BC breaks to be expected.

Prerequisites
-------------

[](#prerequisites)

This bundle requires Symfony 3.3+. Additionally you may want to install grpc and protobuf PECL extensions.

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

[](#installation)

Add [`crassula/google-cloud-error-reporting-bundle`](https://packagist.org/packages/crassula/google-cloud-error-reporting-bundle) to your composer.json file:

```
$ composer require crassula/google-cloud-error-reporting-bundle
```

Register the bundle in app/AppKernel.php:

```
public function registerBundles()
{
    return array(
        // ...
        new Crassula\Bundle\GoogleCloudErrorReportingBundle\CrassulaGoogleCloudErrorReportingBundle(),
    );
}
```

Authentication
--------------

[](#authentication)

Please see [Google's Authentication guide](https://github.com/googleapis/google-cloud-php/blob/master/AUTHENTICATION.md) for information on authenticating the client. Once authenticated, you'll be ready to start making requests.

Configuration
-------------

[](#configuration)

Minimal configuration in your `app/config/config.yml`:

```
crassula_google_cloud_error_reporting:
    enabled: true
    project_id: project-12345
    service: app_name
    client_options:
        credentials: /etc/gcp_credentials.json
```

By default error reporting is disabled, so you have to explicitly enable it where you need it (e.g. in `app/config/config_prod.yml`).

For full configuration reference run:

```
$ bin/console config:dump-reference CrassulaGoogleCloudErrorReportingBundle
```

Sample
------

[](#sample)

```
use Crassula\Bundle\GoogleCloudErrorReportingBundle\Service\ErrorReporter;

try {
    $this->doFaultyOperation();
} catch (\Exception $e) {
    $container->get(ErrorReporter::class)->report($e);
}
```

You can additionally pass options as a second argument:

NameDescriptionhttp\_requestInstance of `Symfony\Component\HttpFoundation\Request` to report HTTP method, URL, user agent, referrer and remote IP address. If not set, bundle will attempt to retrieve master request from request stack.http\_response\_status\_codeResponse status code.userAffected user's name, email, login or other username. If not set, bundle will attempt to retrieve username from token storage.request\_optionsOptions related to Google Cloud Error Reporting package:
- retrySettings - See `\Google\ApiCore\RetrySettings::__construct` for available options

Notes
-----

[](#notes)

#### About automatic error reporting

[](#about-automatic-error-reporting)

When config option `use_listeners` is enabled, bundle registers event listeners for `kernel.exception` and `console.error` events with priority *2048*.

Errors are reported on `kernel.terminate` and `console.terminate`.

This option is enabled by default.

#### Exception handling

[](#exception-handling)

Reporter catches and logs exceptions related to bad configuration of Google Cloud Error Reporting package.

License
-------

[](#license)

This package is available under the [MIT license](LICENSE).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.2% 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 ~82 days

Recently: every ~219 days

Total

12

Last Release

1858d ago

PHP version history (2 changes)v0.1.0PHP &gt;=7.1

v0.8.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/eb3927194dc3a744e406d53d34b6559f73ffc202b5568d1624972aa052b6f64a?d=identicon)[luxemate](/maintainers/luxemate)

---

Top Contributors

[![luxemate](https://avatars.githubusercontent.com/u/1465003?v=4)](https://github.com/luxemate "luxemate (35 commits)")[![denbad](https://avatars.githubusercontent.com/u/2112361?v=4)](https://github.com/denbad "denbad (1 commits)")

---

Tags

bundleerror-reportinggoogle-cloudgoogle-cloud-platformphpstackdriversymfonysymfony-bundleerror-reportinggoogle cloudstackdriver

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)

PHPackages © 2026

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