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

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

autoxloo/yii2-sentry
====================

Yii2 wrap of Sentry PHP SDK

014PHP

Since Feb 26Pushed 5y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 wrap of Sentry PHP SDK
===========================

[](#yii2-wrap-of-sentry-php-sdk)

Yii2 wrap of [Sentry PHP SDK](https://github.com/getsentry/sentry-php)

> Note: This package is not supported properly

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist autoxloo/yii2-sentry "*"

```

or

```
composer require --prefer-dist autoxloo/yii2-sentry "*"

```

or add

```
"autoxloo/yii2-sentry": "*"

```

to the require section of your `composer.json` file.

Config
------

[](#config)

In your application config add:

```
// ...
'components' => [
        // ...
        'sentry' => [
            'class' => \autoxloo\yii2\sentry\SentryComponent::class,
            'ravenDsn' => 'https://0000000000000000000@sentry.io/000000',          // Your sentry dsn
            'allowCaptureMessage' => true,
        ],
],
```

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by:

```
\Yii::$app->sentry->getRavenClient()->captureMessage('some message');
```

or

```
\Yii::$app->sentry->captureMessage('some message');
```

> Note: In last example captures message only if `allowCaptureMessage` is `true`.

See sentry docs for more details

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![VasylDmytruk](https://avatars.githubusercontent.com/u/32508794?v=4)](https://github.com/VasylDmytruk "VasylDmytruk (3 commits)")

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B10.9k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1938.5M263](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2326.5M316](/packages/open-telemetry-sdk)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8676.7k](/packages/illuminated-console-logger)

PHPackages © 2026

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