{"id":14966891,"url":"https://github.com/holycheater/yii2-sentry","last_synced_at":"2026-01-24T02:35:02.927Z","repository":{"id":56944259,"uuid":"59784687","full_name":"holycheater/yii2-sentry","owner":"holycheater","description":"Sentry error handler","archived":false,"fork":false,"pushed_at":"2018-01-19T14:49:22.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T20:28:55.578Z","etag":null,"topics":["sentry-error-handler","yii2","yii2-extension"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/holycheater.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-26T21:34:13.000Z","updated_at":"2018-01-19T14:49:52.000Z","dependencies_parsed_at":"2022-08-21T07:50:46.100Z","dependency_job_id":null,"html_url":"https://github.com/holycheater/yii2-sentry","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holycheater%2Fyii2-sentry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holycheater%2Fyii2-sentry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holycheater%2Fyii2-sentry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holycheater%2Fyii2-sentry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holycheater","download_url":"https://codeload.github.com/holycheater/yii2-sentry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253990503,"owners_count":21995776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["sentry-error-handler","yii2","yii2-extension"],"created_at":"2024-09-24T13:37:06.428Z","updated_at":"2026-01-24T02:34:57.911Z","avatar_url":"https://github.com/holycheater.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Yii2 Sentry error handler\n=========================\n\nConfig\n-----\n```php\n'components' =\u003e [\n    'sentry' =\u003e [\n        'class' =\u003e 'alexsalt\\sentry\\Client',\n        'dsn' =\u003e '\u003cyour_dsn_url\u003e',\n        'options' =\u003e [\n            'exclude' =\u003e [\n                'yii\\\\web\\\\NotFoundHttpException',\n                'yii\\\\web\\\\ForbiddenHttpException',\n                'yii\\\\web\\\\UnauthorizedHttpException',\n                'yii\\\\base\\\\InvalidRouteException',\n            ],\n        ],\n    ],\n    'errorHandler' =\u003e [\n        'class' =\u003e 'alexsalt\\sentry\\ConsoleErrorHandler',\n    ],\n    'log' =\u003e [\n        'targets' =\u003e [\n            [\n                'class' =\u003e 'alexsalt\\\\sentry\\\\LogTarget',\n                'levels' =\u003e [ 'warning', 'error' ],\n            ],\n        ],\n    ],\n]\n```\nUse `alexsalt\\sentry\\WebErrorHandler` for web apps\n\nLogging\n-------\n```php\n// basic\nYii::error('message');\n// extra data\nYii::error([\n    'msg' =\u003e 'message name',\n    'data' =\u003e [\n        'foo' =\u003e 'bar',\n    ],\n]);\n// capture exception\ntry {\n    throw new \\Exception('test');\n} catch (\\Exception $e) {\n    Yii::$app-\u003eerrorHandler-\u003elogException($e);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholycheater%2Fyii2-sentry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholycheater%2Fyii2-sentry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholycheater%2Fyii2-sentry/lists"}