PHPackages                             alex-salt/yii2-sentry - 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. alex-salt/yii2-sentry

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

alex-salt/yii2-sentry
=====================

Yii2 sentry error handler

1.1.1(9y ago)14.0kMITPHP

Since May 26Pushed 8y agoCompare

[ Source](https://github.com/holycheater/yii2-sentry)[ Packagist](https://packagist.org/packages/alex-salt/yii2-sentry)[ Docs](https://github.com/holycheater/yii2-sentry)[ RSS](/packages/alex-salt-yii2-sentry/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

Yii2 Sentry error handler
=========================

[](#yii2-sentry-error-handler)

Config
------

[](#config)

```
'components' => [
    'sentry' => [
        'class' => 'alexsalt\sentry\Client',
        'dsn' => '',
        'options' => [
            'exclude' => [
                'yii\\web\\NotFoundHttpException',
                'yii\\web\\ForbiddenHttpException',
                'yii\\web\\UnauthorizedHttpException',
                'yii\\base\\InvalidRouteException',
            ],
        ],
    ],
    'errorHandler' => [
        'class' => 'alexsalt\sentry\ConsoleErrorHandler',
    ],
    'log' => [
        'targets' => [
            [
                'class' => 'alexsalt\\sentry\\LogTarget',
                'levels' => [ 'warning', 'error' ],
            ],
        ],
    ],
]
```

Use `alexsalt\sentry\WebErrorHandler` for web apps

Logging
-------

[](#logging)

```
// basic
Yii::error('message');
// extra data
Yii::error([
    'msg' => 'message name',
    'data' => [
        'foo' => 'bar',
    ],
]);
// capture exception
try {
    throw new \Exception('test');
} catch (\Exception $e) {
    Yii::$app->errorHandler->logException($e);
}
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~126 days

Total

3

Last Release

3386d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d0d4697f7993e6518f1e60d95e1ad8759037288ea8f20b20f44435c591ebc9a6?d=identicon)[alex\_salt](/maintainers/alex_salt)

---

Top Contributors

[![holycheater](https://avatars.githubusercontent.com/u/21382?v=4)](https://github.com/holycheater "holycheater (1 commits)")[![m8rge](https://avatars.githubusercontent.com/u/575777?v=4)](https://github.com/m8rge "m8rge (1 commits)")

---

Tags

sentry-error-handleryii2yii2-extension

### Embed Badge

![Health badge](/badges/alex-salt-yii2-sentry/health.svg)

```
[![Health](https://phpackages.com/badges/alex-salt-yii2-sentry/health.svg)](https://phpackages.com/packages/alex-salt-yii2-sentry)
```

###  Alternatives

[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k114.3M154](/packages/sentry-sentry-laravel)[bedezign/yii2-audit

Yii2 Audit records and displays web/cli requests, database changes, php/js errors and associated data.

201657.4k4](/packages/bedezign-yii2-audit)[mito/yii2-sentry

Yii 2 extension for Sentry

92377.7k](/packages/mito-yii2-sentry)[e96/yii2-sentry

A Yii2 client for Sentry (http://getsentry.com)

2960.4k](/packages/e96-yii2-sentry)

PHPackages © 2026

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