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

ActiveYii2-extension

jackshadow/yii2-sentry
======================

Yii 2 extension for Sentry

1.0.4(8y ago)0670MITPHP

Since Apr 25Pushed 8y ago1 watchersCompare

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

READMEChangelog (2)DependenciesVersions (23)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

32

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity73

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 ~30 days

Recently: every ~53 days

Total

19

Last Release

3120d ago

Major Versions

0.8.1 → 1.0.02017-03-21

### Community

---

Top Contributors

[![a-borsos](https://avatars.githubusercontent.com/u/252152853?v=4)](https://github.com/a-borsos "a-borsos (35 commits)")[![albertborsos](https://avatars.githubusercontent.com/u/7307145?v=4)](https://github.com/albertborsos "albertborsos (34 commits)")[![nkovacs](https://avatars.githubusercontent.com/u/2269242?v=4)](https://github.com/nkovacs "nkovacs (15 commits)")[![JackShadow](https://avatars.githubusercontent.com/u/5578971?v=4)](https://github.com/JackShadow "JackShadow (3 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)")

### Embed Badge

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

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

PHPackages © 2026

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