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

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

darkair/yii2-sentry-log
=======================

Simple Yii2 Sentry target for logging (http://getsentry.com)

31.8k6[2 issues](https://github.com/DarkAiR/yii2-sentry-log/issues)PHP

Since Jul 8Pushed 11y ago3 watchersCompare

[ Source](https://github.com/DarkAiR/yii2-sentry-log)[ Packagist](https://packagist.org/packages/darkair/yii2-sentry-log)[ RSS](/packages/darkair-yii2-sentry-log/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-sentry-log
===============

[](#yii2-sentry-log)

Yii2 Sentry target for logging based on Raven client.

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

[](#installation)

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

Either run

```
$ php composer.phar require darkair/yii2-sentry-log "dev-master"

```

or add

```
"darkair/yii2-sentry-log": "dev-master"

```

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

Usage
-----

[](#usage)

Add target class in your project config:

```
'components' => [
    'log' => [
        'targets' => [
            [
                'class' => 'sentry\SentryTarget',
                'levels' => ['error', 'warning'],   // or smth else
                'dsn' => '',                        // sentry access string
            ],
        ],
    ],

```

Then use like ordinary log:

```
Yii::error('some string');

```

or

```
Yii::error([
    'msg' => 'some message',
    'data' => [...],                // Any pair key=>value for adding to the sentry message
]);

```

Note
----

[](#note)

Because the mechanism of logging is asyncronical, standard sentry stacktrace is unavailable. But this extension sends logger stacktrace in extra parameters of message.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![DarkAiR](https://avatars.githubusercontent.com/u/1285623?v=4)](https://github.com/DarkAiR "DarkAiR (10 commits)")

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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