{"id":15169573,"url":"https://github.com/zero-archive/yii-sentry","last_synced_at":"2025-10-01T02:31:33.240Z","repository":{"id":17818856,"uuid":"20717117","full_name":"zero-archive/yii-sentry","owner":"zero-archive","description":"The Yii Sentry extension that allows developers to push messages and logs to the Sentry service or your own Sentry server","archived":true,"fork":false,"pushed_at":"2018-08-04T09:27:06.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-23T22:03:00.677Z","etag":null,"topics":["php","sentry","yii","yii-framework"],"latest_commit_sha":null,"homepage":"https://github.com/dotzero/yii-sentry","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/zero-archive.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":"2014-06-11T07:56:25.000Z","updated_at":"2023-01-28T13:41:25.000Z","dependencies_parsed_at":"2022-09-05T20:11:27.233Z","dependency_job_id":null,"html_url":"https://github.com/zero-archive/yii-sentry","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zero-archive%2Fyii-sentry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zero-archive%2Fyii-sentry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zero-archive%2Fyii-sentry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zero-archive%2Fyii-sentry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zero-archive","download_url":"https://codeload.github.com/zero-archive/yii-sentry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219875269,"owners_count":16554661,"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":["php","sentry","yii","yii-framework"],"created_at":"2024-09-27T07:03:55.728Z","updated_at":"2025-10-01T02:31:27.983Z","avatar_url":"https://github.com/zero-archive.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YiiSentry\n\n[![Latest Stable Version](https://poser.pugx.org/dotzero/yii-sentry/version)](https://packagist.org/packages/dotzero/yii-sentry)\n[![License](https://poser.pugx.org/dotzero/yii-sentry/license)](https://packagist.org/packages/dotzero/yii-sentry)\n\n**YiiSentry** is an extension for the Yii PHP framework that allows developers to push messages and logs to the [Sentry](https://getsentry.com/) service or your own **Sentry server**.\n\n## Requirements:\n\n- [Yii Framework](https://github.com/yiisoft/yii) 1.1.14 or above\n- [Composer](http://getcomposer.org/doc/)\n\n## Install\n\n### Via composer:\n\n```bash\n$ composer require dotzero/yii-sentry\n```\n\n- Add vendor path to your configuration file, attach component and set properties:\n\n```php\n'aliases' =\u003e array(\n    ...\n    'vendor' =\u003e realpath(__DIR__ . '/../../vendor'),\n),\n'components' =\u003e array(\n    ...\n    'sentry' =\u003e array(\n        'class' =\u003e 'vendor.dotzero.yii-sentry.ESentry',\n        'sentryDir' =\u003e 'vendor.sentry.sentry', // Path alias of the sentry-php directory (optional)\n        'enabled' =\u003e true, // Enabled or disabled extension (optional)\n        'dsn' =\u003e '[YOUR_DSN_FROM_SENTRY_SERVER]',\n        // Raven PHP options (https://github.com/getsentry/sentry-php#configuration)\n        'options' =\u003e array(\n            'site' =\u003e 'example.com',\n            'tags' =\u003e array(\n                'php_version' =\u003e phpversion(),\n            ),\n        ),\n    ),\n),\n```\n\n- Add the following to your config file `log` section to enable `ESentryLogRoute`:\n\n```php\n'routes' =\u003e array(\n    ...\n    array(\n        'class' =\u003e 'vendor.dotzero.yii-sentry.ESentryLogRoute',\n        'levels' =\u003e 'error, warning',\n    ),\n),\n```\n\n## Usage:\n\n```php\n// To capture Message\n$sentry = Yii::app()-\u003esentry;\n$sentry-\u003ecaptureMessage('test', array(\n    'param1' =\u003e 'value1',\n    'param2' =\u003e 'value2',\n));\n\n// To capture Exception\ntry {\n    throw new Exception('Error Processing Request', 1);\n} catch (Exception $e) {\n    $sentry = Yii::app()-\u003esentry;\n    $sentry-\u003ecaptureException($e);\n}\n```\n\n## License\n\nLicensed under the MIT license: http://www.opensource.org/licenses/mit-license.php\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzero-archive%2Fyii-sentry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzero-archive%2Fyii-sentry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzero-archive%2Fyii-sentry/lists"}