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

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

mito/yii2-sentry
================

Yii 2 extension for Sentry

1.0.4(8y ago)92377.7k↑10.8%27[1 issues](https://github.com/hellowearemito/yii2-sentry/issues)[7 PRs](https://github.com/hellowearemito/yii2-sentry/pulls)MITPHPPHP &gt;=5.6.0

Since Apr 25Pushed 6y ago11 watchersCompare

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

READMEChangelog (5)Dependencies (10)Versions (20)Used By (0)

Yii 2 - Sentry Error Logger
===========================

[](#yii-2---sentry-error-logger)

[Sentry](https://getsentry.com/) provides real-time crash reporting for web apps, both server and client side. This is a Yii 2 extension which lets you integrate your projects to Sentry and log PHP and JavaScript errors.

Brought to you by [Mito](http://mito.hu).

[![Latest Stable Version](https://camo.githubusercontent.com/10509dfe1f615e4f9e244e4b7e7531fca8c42d239a3a2e30fcfe3df1cce6d5bb/68747470733a2f2f706f7365722e707567782e6f72672f6d69746f2f796969322d73656e7472792f762f737461626c65)](https://packagist.org/packages/mito/yii2-sentry) [![Total Downloads](https://camo.githubusercontent.com/62f34074a3434dab5cc156497d5f64d0b94959795480bb4553d4a1d760a0abb5/68747470733a2f2f706f7365722e707567782e6f72672f6d69746f2f796969322d73656e7472792f646f776e6c6f616473)](https://packagist.org/packages/mito/yii2-sentry) [![License](https://camo.githubusercontent.com/482232b89c0a0eaecef6448399cdac07c1dbfd0b81bc427415b897ca198cb270/68747470733a2f2f706f7365722e707567782e6f72672f6d69746f2f796969322d73656e7472792f6c6963656e7365)](https://packagist.org/packages/mito/yii2-sentry)

[![Build Status](https://camo.githubusercontent.com/07b90ef4015b2892368221c59f424d943156e774fb741360a7eefbf1cf31405e/68747470733a2f2f7472617669732d63692e6f72672f68656c6c6f77656172656d69746f2f796969322d73656e7472792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/hellowearemito/yii2-sentry) [![Coverage Status](https://camo.githubusercontent.com/b974af4bbae7160af116bdf977c0db78a1c85355be43cae60a683b4b4cd7e4b2/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f68656c6c6f77656172656d69746f2f796969322d73656e7472792f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/hellowearemito/yii2-sentry?branch=master)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist mito/yii2-sentry "~1.0.0"

```

or add the following line to the require section of your `composer.json` file:

```
"mito/yii2-sentry": "~1.0.0"

```

Requirements
------------

[](#requirements)

Yii 2 and above. Sentry 8 and above.

You can use this extension with both the hosted and on-premise version of Sentry.

Usage
-----

[](#usage)

Once the extension is installed, set your configuration in common config file:

```
    'components' => [

        'sentry' => [
            'class' => 'mito\sentry\Component',
            'dsn' => 'YOUR-PRIVATE-DSN', // private DSN
            'environment' => 'staging', // if not set, the default is `production`
            'jsNotifier' => true, // to collect JS errors. Default value is `false`
            'jsOptions' => [ // raven-js config parameter
                'whitelistUrls' => [ // collect JS errors from these urls
                    'http://staging.my-product.com',
                    'https://my-product.com',
                ],
            ],
        ],
        'log' => [
            'targets' => [
                [
                    'class' => 'mito\sentry\Target',
                    'levels' => ['error', 'warning'],
                    'except' => [
                        'yii\web\HttpException:404',
                    ],
                ],
            ],
        ],

    ],
```

To skip collecting errors in the development environment, disable the component with this parameter:

```
    'components' => [
        'sentry' => [
            'enabled' => false,
        ],
    ],
```

License
-------

[](#license)

Code released under [MIT License](LICENSE).

Contact
-------

[](#contact)

Should you have any comments or questions, please contact us at .

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity50

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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

Every ~32 days

Recently: every ~63 days

Total

19

Last Release

3093d ago

Major Versions

0.8.1 → 1.0.02017-03-21

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2269242?v=4)[Nikola Kovacs](/maintainers/nkovacs)[@nkovacs](https://github.com/nkovacs)

![](https://avatars.githubusercontent.com/u/40475?v=4)[mito](/maintainers/mito)[@mito](https://github.com/mito)

---

Top Contributors

[![albertborsos](https://avatars.githubusercontent.com/u/7307145?v=4)](https://github.com/albertborsos "albertborsos (49 commits)")[![a-borsos](https://avatars.githubusercontent.com/u/252152853?v=4)](https://github.com/a-borsos "a-borsos (35 commits)")[![nkovacs](https://avatars.githubusercontent.com/u/2269242?v=4)](https://github.com/nkovacs "nkovacs (15 commits)")[![erickskrauch](https://avatars.githubusercontent.com/u/4787256?v=4)](https://github.com/erickskrauch "erickskrauch (2 commits)")[![Alex-Bond](https://avatars.githubusercontent.com/u/1134715?v=4)](https://github.com/Alex-Bond "Alex-Bond (1 commits)")[![odannyc](https://avatars.githubusercontent.com/u/12864641?v=4)](https://github.com/odannyc "odannyc (1 commits)")

---

Tags

sentryyii2extension

###  Code Quality

TestsCodeception

### Embed Badge

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

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

###  Alternatives

[e96/yii2-sentry

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

2960.4k](/packages/e96-yii2-sentry)[lav45/yii2-activity-logger

Tools to store user activity log for Yii2

3456.3k](/packages/lav45-yii2-activity-logger)

PHPackages © 2026

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