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

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

dotzero/yii-sentry
==================

The Yii Sentry extension that allows developers to push messages and logs to the Sentry service or your own Sentry server

v1.2.0(7y ago)130.3k2MITPHPPHP &gt;=5.3.0

Since May 2Pushed 7y ago1 watchersCompare

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

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

YiiSentry
=========

[](#yiisentry)

[![Latest Stable Version](https://camo.githubusercontent.com/205a338420f4187e098d6143099901da24121fc72b70e2fbf071b6ff636cf1f7/68747470733a2f2f706f7365722e707567782e6f72672f646f747a65726f2f7969692d73656e7472792f76657273696f6e)](https://packagist.org/packages/dotzero/yii-sentry)[![License](https://camo.githubusercontent.com/899be1e47907988f576dcb303008ef4d8ea160f5572ce5d63906ed83e257befe/68747470733a2f2f706f7365722e707567782e6f72672f646f747a65726f2f7969692d73656e7472792f6c6963656e7365)](https://packagist.org/packages/dotzero/yii-sentry)

**YiiSentry** is an extension for the Yii PHP framework that allows developers to push messages and logs to the [Sentry](https://getsentry.com/) service or your own **Sentry server**.

Requirements:
-------------

[](#requirements)

- [Yii Framework](https://github.com/yiisoft/yii) 1.1.14 or above
- [Composer](http://getcomposer.org/doc/)

Install
-------

[](#install)

### Via composer:

[](#via-composer)

```
$ composer require dotzero/yii-sentry
```

- Add vendor path to your configuration file, attach component and set properties:

```
'aliases' => array(
    ...
    'vendor' => realpath(__DIR__ . '/../../vendor'),
),
'components' => array(
    ...
    'sentry' => array(
        'class' => 'vendor.dotzero.yii-sentry.ESentry',
        'sentryDir' => 'vendor.sentry.sentry', // Path alias of the sentry-php directory (optional)
        'enabled' => true, // Enabled or disabled extension (optional)
        'dsn' => '[YOUR_DSN_FROM_SENTRY_SERVER]',
        // Raven PHP options (https://github.com/getsentry/sentry-php#configuration)
        'options' => array(
            'site' => 'example.com',
            'tags' => array(
                'php_version' => phpversion(),
            ),
        ),
    ),
),
```

- Add the following to your config file `log` section to enable `ESentryLogRoute`:

```
'routes' => array(
    ...
    array(
        'class' => 'vendor.dotzero.yii-sentry.ESentryLogRoute',
        'levels' => 'error, warning',
    ),
),
```

Usage:
------

[](#usage)

```
// To capture Message
$sentry = Yii::app()->sentry;
$sentry->captureMessage('test', array(
    'param1' => 'value1',
    'param2' => 'value2',
));

// To capture Exception
try {
    throw new Exception('Error Processing Request', 1);
} catch (Exception $e) {
    $sentry = Yii::app()->sentry;
    $sentry->captureException($e);
}
```

License
-------

[](#license)

Licensed under the MIT license:

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 76.5% 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 ~206 days

Total

5

Last Release

2836d ago

### Community

Maintainers

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

---

Top Contributors

[![dotzero](https://avatars.githubusercontent.com/u/265633?v=4)](https://github.com/dotzero "dotzero (13 commits)")[![suprim1](https://avatars.githubusercontent.com/u/22478554?v=4)](https://github.com/suprim1 "suprim1 (2 commits)")[![vitalyzhakov](https://avatars.githubusercontent.com/u/1775220?v=4)](https://github.com/vitalyzhakov "vitalyzhakov (2 commits)")

---

Tags

phpsentryyiiyii-frameworklogssentryextensionyii

### Embed Badge

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

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

###  Alternatives

[sentry/sentry-laravel

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

1.3k114.3M154](/packages/sentry-sentry-laravel)[samdark/yii2-psr-log-target

Yii 2 log target which uses PSR-3 compatible logger

841.8M10](/packages/samdark-yii2-psr-log-target)[networkteam/sentry-client

A Sentry client for TYPO3. It forwards errors and exceptions to Sentry - https://sentry.io/

371.0M4](/packages/networkteam-sentry-client)[facile-it/sentry-module

This module allows integration of Sentry Client into laminas and mezzio

19372.5k](/packages/facile-it-sentry-module)[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)

PHPackages © 2026

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