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

ActiveYii2-extension[Logging &amp; Monitoring](/categories/logging)

e96/yii2-sentry
===============

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

0.2.0(9y ago)2960.4k↓50%6[1 issues](https://github.com/E96/yii2-sentry/issues)MITPHPPHP &gt;=5.4.0

Since May 18Pushed 9y ago7 watchersCompare

[ Source](https://github.com/E96/yii2-sentry)[ Packagist](https://packagist.org/packages/e96/yii2-sentry)[ RSS](/packages/e96-yii2-sentry/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Yii2 sentry client
==================

[](#yii2-sentry-client)

\##Install

```
php composer.phar require e96/yii2-sentry

```

Usage
-----

[](#usage)

In config file:

```
'bootstrap' => ['log', 'raven'],
'components' => [
    'raven' => [
        'class' => 'e96\sentry\ErrorHandler',
        'dsn' => '', // Sentry DSN
    ],
    'log' => [
        'targets' => [
            [
                'class' => 'e96\sentry\Target',
                'levels' => ['error', 'warning'],
                'dsn' => '', // Sentry DSN
            ]
        ],
    ],
]
```

You can provide additional information with exceptions:

```
SentryHelper::extraData($task->attributes);
throw new Exception('unknown task type');
```

Or just capture message with full stacktrace

```
try {
    throw new Exception('FAIL');
} catch (Exception $e) {
    SentryHelper::captureWithMessage('Fail to save model', $e);
}
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.2% 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 ~156 days

Total

2

Last Release

3497d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5da56097a7c9aced72f9d376741f2e061123d386fd9e86be9c5d3d1435c0bc7a?d=identicon)[m8rge](/maintainers/m8rge)

---

Top Contributors

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

---

Tags

logsentryyii2raven

### Embed Badge

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

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

###  Alternatives

[sentry/sentry-laravel

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

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

Yii 2 extension for Sentry

92377.7k](/packages/mito-yii2-sentry)[facile-it/sentry-module

This module allows integration of Sentry Client into laminas and mezzio

19372.5k](/packages/facile-it-sentry-module)

PHPackages © 2026

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