{"id":21890907,"url":"https://github.com/statikbe/craft-sentry","last_synced_at":"2026-04-02T14:56:03.128Z","repository":{"id":42388435,"uuid":"299846269","full_name":"statikbe/craft-sentry","owner":"statikbe","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-05T13:10:42.000Z","size":77,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-09-15T17:18:47.460Z","etag":null,"topics":["craftcms"],"latest_commit_sha":null,"homepage":null,"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/statikbe.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-30T07:47:18.000Z","updated_at":"2025-08-05T13:07:40.000Z","dependencies_parsed_at":"2024-10-19T08:52:23.210Z","dependency_job_id":null,"html_url":"https://github.com/statikbe/craft-sentry","commit_stats":{"total_commits":19,"total_committers":3,"mean_commits":6.333333333333333,"dds":0.1578947368421053,"last_synced_commit":"668f36cce0e672d1392542336fbc1b9482685634"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/statikbe/craft-sentry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statikbe%2Fcraft-sentry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statikbe%2Fcraft-sentry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statikbe%2Fcraft-sentry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statikbe%2Fcraft-sentry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/statikbe","download_url":"https://codeload.github.com/statikbe/craft-sentry/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statikbe%2Fcraft-sentry/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31308459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["craftcms"],"created_at":"2024-11-28T12:18:13.822Z","updated_at":"2026-04-02T14:56:03.106Z","avatar_url":"https://github.com/statikbe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sentry.io for Craft CMS\n\n[Sentry.io](https://sentry.io/) integration for Craft CMS. Inspired by [born05/craft-sentry](https://github.com/born05/craft-sentry), but with our own twist.\n\n## Installation\n\nTo install the plugin, follow these instructions in your terminal.\n```shell script\ncd /path/to/project\ncomposer require statikbe/craft-sentry\n./craft plugin/install craft-sentry\n```\n## Configration\n\nCreate a config/craft-sentry.php config file with the following contents:\n```php\n\u003c?php\n\nreturn [\n    'enabled'       =\u003e true,\n    'anonymous'     =\u003e true,\n    'clientDsn'     =\u003e getenv('SENTRY_DSN') ?: 'https://example@sentry.io/123456789',\n    'excludedCodes' =\u003e ['400', '404', '429'],\n    'excludedExceptions' =\u003e [],\n    'release'       =\u003e getenv('SENTRY_RELEASE') ?: null,\n];\n```\n\n## Usage\n\nTo let Sentry log your exception, you don't really need to do anything. Install the plugin and add your DSN and you're set.\n\nWhen you're writing your own custom code and throwing your own exception, you'll also want to catch those and send them to Sentry. That can be done like this:\n```php\n\u003c?php\n\nuse statikbe\\sentry\\Sentry;\nuse yii\\base\\InvalidConfigException; // Don't copy this line, it's just here to make the example theoractically correct ;) \n\ntry {\n    throw new InvalidConfigException(\"Something went wrong here...\");\n} catch (Exception $e) {\n    Sentry::handleException($e);\n}\n```\n\nThe plugin works for exceptions thrown in web requests as well as console requests. For web requests, the url where the error happened is included.\n\n### Excluding specific exceptions\nUsing the ``excludedExceptions``, you can stop specific types of exceptions from being logged to Sentry, for example:\n````php\n'excludedExceptions' =\u003e [\n    \\craft\\errors\\ImageTransformException::class,\n],\n````\n\n---\n \nBrought to you by [Statik.be](https://www.statik.be)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatikbe%2Fcraft-sentry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatikbe%2Fcraft-sentry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatikbe%2Fcraft-sentry/lists"}