PHPackages                             websupport/yii-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. websupport/yii-sentry

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

websupport/yii-sentry
=====================

Layer for Yii framework for communication with Sentry logging API

v1.0.0(3y ago)220.0k↑15%5[1 issues](https://github.com/websupport-sk/yii-sentry/issues)[1 PRs](https://github.com/websupport-sk/yii-sentry/pulls)BSD-3-ClausePHPPHP &gt;=7.1

Since Aug 4Pushed 1y ago9 watchersCompare

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

READMEChangelog (1)Dependencies (5)Versions (4)Used By (0)

Yii Sentry extension
====================

[](#yii-sentry-extension)

Logging Extension for Yii framework for communication with Sentry logging API

Installation
------------

[](#installation)

**Yii Sentry** is composer library so you can install the latest version with:

```
composer require websupport/yii-sentry
```

Configuration
-------------

[](#configuration)

Add following to your application's config:

### PHP error reporting

[](#php-error-reporting)

```
'components' => [
    'log' => [
        'class' => \CLogRouter::class,
        'routes' => [
            // your other log routers
            array(
                'class' => \Websupport\YiiSentry\LogRoute::class,
                'levels' => E_ALL,
                'enabled' => !YII_DEBUG,
            ],
        ],
    ],
    'sentry' => [
        'class' => \Websupport\YiiSentry\Client::class,
        'dsn' => '', // Your's DSN from Sentry
    ],
)
```

### JS error reporting

[](#js-error-reporting)

```
'preload' => ['sentry'],
'components' => [
    'sentry' => [
        'class' => \Websupport\YiiSentry\Client::class,
        'jsDsn' => '', // Your's DSN from Sentry
    ],
]
```

#### Sending user context to JS

[](#sending-user-context-to-js)

`\Websupport\YiiSentry\Client` component has public method: `setJsUserContext($context)` which will send `$context` to Raven JS instance. You can call this method multiple times from any part of the system. Recommended way however is to use it in `CWebUser` class right after init.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

1154d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/28bb9421e26379323bdef64a21eac186c9cc32f2dd8fb1076abe2b66a171a185?d=identicon)[websupport](/maintainers/websupport)

![](https://www.gravatar.com/avatar/ba0e01e50f298bcedc009b464b684959a35c90e2beb9c9a881e95d5020a8fd1c?d=identicon)[FilipBenco](/maintainers/FilipBenco)

---

Top Contributors

[![FilipBenco](https://avatars.githubusercontent.com/u/1467107?v=4)](https://github.com/FilipBenco "FilipBenco (6 commits)")[![miso93](https://avatars.githubusercontent.com/u/6154613?v=4)](https://github.com/miso93 "miso93 (5 commits)")[![MichaelKubovic](https://avatars.githubusercontent.com/u/1603975?v=4)](https://github.com/MichaelKubovic "MichaelKubovic (1 commits)")[![pdragun](https://avatars.githubusercontent.com/u/1184505?v=4)](https://github.com/pdragun "pdragun (1 commits)")[![tatarko](https://avatars.githubusercontent.com/u/1819801?v=4)](https://github.com/tatarko "tatarko (1 commits)")

---

Tags

sentryyiiyii-extensionlogsentryyiiYii1

### Embed Badge

![Health badge](/badges/websupport-yii-sentry/health.svg)

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

###  Alternatives

[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k227.1M273](/packages/sentry-sentry)[sentry/sentry-laravel

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

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

This is a meta package of sentry/sentry. We recommend using sentry/sentry directly.

328134.8M151](/packages/sentry-sdk)[phptek/sentry

Sentry.io integration for SilverStripe. Binds Sentry.io to SilverStripe's error &amp; exception handling subsystem.

15203.5k3](/packages/phptek-sentry)[crisu83/yii-sentry

Sentry for the Yii PHP framework.

1110.8k](/packages/crisu83-yii-sentry)[webpractik/sentry

Module sending logs to sentry

208.8k](/packages/webpractik-sentry)

PHPackages © 2026

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