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

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

amaristany/yii2-sentry
======================

Yii2 Sentry integration as an extension (component + log target).

v1.0.4(5mo ago)04MITPHPPHP &gt;=8.1.0

Since Dec 8Pushed 5mo agoCompare

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

READMEChangelogDependencies (3)Versions (5)Used By (0)

Yii2 Sentry Extension
=====================

[](#yii2-sentry-extension)

A Yii2 extension that integrates Sentry error tracking and logging into your Yii2 application.

Description
-----------

[](#description)

This extension provides seamless integration of Sentry SDK with Yii2, allowing you to capture and report errors, exceptions, and performance data to Sentry. It includes a component for initialization and a custom queue transport for handling events asynchronously.

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

[](#installation)

Install the extension via Composer:

```
composer require amaristany/yii2-sentry
```

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

[](#configuration)

Configure the Sentry component in your application config:

```
// config/main.php
return [
    // ...
    'components' => [
        'sentry' => [
            'class' => 'Amaristany\Sentry\SentryComponent',
            'dsn' => 'https://your-dsn@sentry.io/project-id',
            'queueId' => 'queue', // optional, defaults to 'queue'
        ],
    ],
];
```

Usage
-----

[](#usage)

Once configured, the extension will automatically capture errors and exceptions in your Yii2 application. You can also manually capture events:

```
use Sentry;

Sentry\captureException(new Exception('Something went wrong'));
Sentry\captureMessage('Something happened');
```

For more advanced usage, refer to the [Sentry PHP SDK documentation](https://docs.sentry.io/platforms/php/).

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

[](#requirements)

- PHP &gt;= 8.1.0
- Yii2 ~2.0.0
- Sentry SDK ^4.0
- Guzzle HTTP ^7.0

License
-------

[](#license)

This extension is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance72

Regular maintenance activity

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

4

Last Release

156d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/46c0675c9bb7ccc1f9c7bc4bd020525624decb8a9f8cfe8bb59616fe8a1a8b72?d=identicon)[tonito](/maintainers/tonito)

---

Top Contributors

[![tonitomystery](https://avatars.githubusercontent.com/u/16812563?v=4)](https://github.com/tonitomystery "tonitomystery (9 commits)")

---

Tags

loggingerrorssentryyii2extension

### Embed Badge

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

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

###  Alternatives

[sentry/sentry-symfony

Symfony integration for Sentry (http://getsentry.com)

73761.4M66](/packages/sentry-sentry-symfony)[mito/yii2-sentry

Yii 2 extension for Sentry

92377.7k](/packages/mito-yii2-sentry)

PHPackages © 2026

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