PHPackages                             pinfirestudios/yii2-bugsnag - 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. pinfirestudios/yii2-bugsnag

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

pinfirestudios/yii2-bugsnag
===========================

Yii2 log target and ErrorHandler for BugSnag

1.0.5(8y ago)720.9k↑50%14[3 issues](https://github.com/pinfirestudios/yii2-bugsnag/issues)[1 PRs](https://github.com/pinfirestudios/yii2-bugsnag/pulls)1MITPHP

Since Oct 29Pushed 8y ago2 watchersCompare

[ Source](https://github.com/pinfirestudios/yii2-bugsnag)[ Packagist](https://packagist.org/packages/pinfirestudios/yii2-bugsnag)[ RSS](/packages/pinfirestudios-yii2-bugsnag/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (7)Used By (1)

Yii2 Bugsnag integration
========================

[](#yii2-bugsnag-integration)

To use, configure as such:

```
$config = [
    'components' => [
        'errorHandler' => [
            'class' => 'pinfirestudios\yii2bugsnag\BugsnagWebErrorHandler' // For your web configuration
            'class' => 'pinfirestudios\yii2bugsnag\BugsnagConsoleErrorHandler' // For your console configuration
        ],
        'bugsnag' => [
            'class' => 'pinfirestudios\yii2bugsnag\BugsnagComponent', // Or your override of such
            'bugsnag_api_key' => 'YOUR API KEY',
            'notifyReleaseStages' => ['staging', 'production'],
        ],
        'log' => [
            'traceLevel' => 8,
            'targets' => [
                [
                    'class' => 'pinfirestudios\yii2bugsnag\BugsnagLogTarget',
                    'levels' => ['error', 'warning', 'info', 'trace'],
                    'logVars' => [],
                ]
            ],
        ],
    ],
];

```

If you would like to use Bugsnag's javascript on your site, you'll need to install *bower-asset/bugsnag*:

1. Add the following to your project's composer.json

    "repositories": \[ { "type": "composer", "url": "" } \]
2. Require bower-asset/bugsnag

    composer require bower-asset/bugsnag
3. Once you have it installed, simply depend on BugsnagAsset in your AppAsset. This will automatically register Bugsnag's javascript to the page. Default version is 3.

    class AppAsset extends AssetBundle { public $depends = \[ 'pinfirestudios\\yii2bugsnag\\BugsnagAsset', \]; }

If you need to use version 2 of Bugsnag's javascript, you can specify the version in your configuration. See [Customizing Asset Bundles](http://www.yiiframework.com/doc-2.0/guide-structure-assets.html#customizing-asset-bundles).

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance11

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 72.2% 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 ~18 days

Total

6

Last Release

3024d ago

### Community

Maintainers

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

---

Top Contributors

[![jcherniak](https://avatars.githubusercontent.com/u/1727656?v=4)](https://github.com/jcherniak "jcherniak (13 commits)")[![antongorodezkiy](https://avatars.githubusercontent.com/u/580599?v=4)](https://github.com/antongorodezkiy "antongorodezkiy (1 commits)")[![diogopms](https://avatars.githubusercontent.com/u/2445019?v=4)](https://github.com/diogopms "diogopms (1 commits)")[![JPtaormina](https://avatars.githubusercontent.com/u/39569003?v=4)](https://github.com/JPtaormina "JPtaormina (1 commits)")[![rzumstein](https://avatars.githubusercontent.com/u/7303748?v=4)](https://github.com/rzumstein "rzumstein (1 commits)")[![tonysm](https://avatars.githubusercontent.com/u/1178621?v=4)](https://github.com/tonysm "tonysm (1 commits)")

---

Tags

loggingerrors

### Embed Badge

![Health badge](/badges/pinfirestudios-yii2-bugsnag/health.svg)

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

###  Alternatives

[bugsnag/bugsnag-laravel

Official Bugsnag notifier for Laravel applications.

90234.6M36](/packages/bugsnag-bugsnag-laravel)[sentry/sentry-symfony

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

73761.4M66](/packages/sentry-sentry-symfony)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

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

Official Bugsnag notifier for PHP applications.

56347.0M78](/packages/bugsnag-bugsnag)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M82](/packages/rollbar-rollbar)[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)

PHPackages © 2026

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