{"id":26461330,"url":"https://github.com/crassula/google-cloud-error-reporting-bundle","last_synced_at":"2026-05-01T16:32:26.282Z","repository":{"id":52960090,"uuid":"154277082","full_name":"crassula/google-cloud-error-reporting-bundle","owner":"crassula","description":" This bundle provides integration with Google Cloud Error Reporting in your Symfony project.","archived":false,"fork":false,"pushed_at":"2021-04-12T11:40:25.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-06-04T04:15:02.119Z","etag":null,"topics":["bundle","error-reporting","google-cloud","google-cloud-platform","php","stackdriver","symfony","symfony-bundle"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crassula.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-23T06:51:34.000Z","updated_at":"2023-01-17T12:31:51.000Z","dependencies_parsed_at":"2022-08-24T09:10:20.443Z","dependency_job_id":null,"html_url":"https://github.com/crassula/google-cloud-error-reporting-bundle","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/crassula/google-cloud-error-reporting-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crassula%2Fgoogle-cloud-error-reporting-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crassula%2Fgoogle-cloud-error-reporting-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crassula%2Fgoogle-cloud-error-reporting-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crassula%2Fgoogle-cloud-error-reporting-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crassula","download_url":"https://codeload.github.com/crassula/google-cloud-error-reporting-bundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crassula%2Fgoogle-cloud-error-reporting-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32505095,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bundle","error-reporting","google-cloud","google-cloud-platform","php","stackdriver","symfony","symfony-bundle"],"created_at":"2025-03-19T04:20:50.553Z","updated_at":"2026-05-01T16:32:26.258Z","avatar_url":"https://github.com/crassula.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CrassulaGoogleCloudErrorReportingBundle\n\nThis bundle provides integration with [Google Cloud Error Reporting](https://cloud.google.com/error-reporting/) in your Symfony project.\n\n__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.\n\n## Prerequisites\n\nThis bundle requires Symfony 3.3+. Additionally you may want to install grpc and protobuf PECL extensions.\n\n## Installation\n\nAdd [`crassula/google-cloud-error-reporting-bundle`](https://packagist.org/packages/crassula/google-cloud-error-reporting-bundle) to your composer.json file:\n\n```bash\n$ composer require crassula/google-cloud-error-reporting-bundle\n```\n\nRegister the bundle in app/AppKernel.php:\n\n```php\npublic function registerBundles()\n{\n    return array(\n        // ...\n        new Crassula\\Bundle\\GoogleCloudErrorReportingBundle\\CrassulaGoogleCloudErrorReportingBundle(),\n    );\n}\n```\n\n## Authentication\n\nPlease 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.\n\n## Configuration\n\nMinimal configuration in your `app/config/config.yml`:\n\n```yaml\ncrassula_google_cloud_error_reporting:\n    enabled: true\n    project_id: project-12345\n    service: app_name\n    client_options:\n        credentials: /etc/gcp_credentials.json\n```\n\nBy default error reporting is disabled, so you have to explicitly enable it where you need it (e.g. in `app/config/config_prod.yml`).\n\nFor full configuration reference run:\n\n```bash\n$ bin/console config:dump-reference CrassulaGoogleCloudErrorReportingBundle\n```\n\n## Sample\n\n```php\nuse Crassula\\Bundle\\GoogleCloudErrorReportingBundle\\Service\\ErrorReporter;\n\ntry {\n    $this-\u003edoFaultyOperation();\n} catch (\\Exception $e) {\n    $container-\u003eget(ErrorReporter::class)-\u003ereport($e);\n}\n```\n\nYou can additionally pass options as a second argument:\n\n| Name | Description\n| --- | ---\n| http_request              | Instance 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.\n| http_response_status_code | Response status code.\n| user                      | Affected user's name, email, login or other username. If not set, bundle will attempt to retrieve username from token storage.\n| request_options           | Options related to Google Cloud Error Reporting package: \u003cbr\u003e\u003cul\u003e\u003cli\u003eretrySettings - See `\\Google\\ApiCore\\RetrySettings::__construct` for available options\u003c/li\u003e\u003c/ul\u003e\n\n## Notes\n\n#### About automatic error reporting\n\nWhen config option `use_listeners` is enabled, bundle registers event listeners for `kernel.exception` and `console.error` events with priority _2048_.\n\nErrors are reported on `kernel.terminate` and `console.terminate`.\n\nThis option is enabled by default. \n\n#### Exception handling\n\nReporter catches and logs exceptions related to bad configuration of Google Cloud Error Reporting package.\n\n## License\nThis package is available under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrassula%2Fgoogle-cloud-error-reporting-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrassula%2Fgoogle-cloud-error-reporting-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrassula%2Fgoogle-cloud-error-reporting-bundle/lists"}