PHPackages                             afterbug/afterbug-yii - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. afterbug/afterbug-yii

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

afterbug/afterbug-yii
=====================

AfterBug Notifier for Yii 2 Applications.

1.0.2(8y ago)116MITPHPPHP &gt;=5.4.0

Since May 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/AfterBug/afterbug-yii)[ Packagist](https://packagist.org/packages/afterbug/afterbug-yii)[ RSS](/packages/afterbug-afterbug-yii/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

AfterBug for Yii Framework
==========================

[](#afterbug-for-yii-framework)

[![StyleCI](https://camo.githubusercontent.com/8c661ff30551fd388651df8de038672ad3cdb3be41f8eb953c05f9e29e381f1c/68747470733a2f2f7374796c6563692e696f2f7265706f732f3133303338343139302f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/130384190)[![Total Downloads](https://camo.githubusercontent.com/521a3123b0655f84b83e6236f10b35ff8fbe34ece1df189e81964f537672a9ac/68747470733a2f2f706f7365722e707567782e6f72672f61667465726275672f61667465726275672d7969692f646f776e6c6f616473)](https://packagist.org/packages/afterbug/afterbug-yii)[![Latest Stable Version](https://camo.githubusercontent.com/270fe44183320f250d4860fd8ee3c2af2ef2c8dc9ca6d4ab98a2c72ddf9c5f76/68747470733a2f2f706f7365722e707567782e6f72672f61667465726275672f61667465726275672d7969692f762f737461626c65)](https://packagist.org/packages/afterbug/afterbug-yii)[![Latest Unstable Version](https://camo.githubusercontent.com/8193a82a8d6297a47006d09016c9d5cb2619e181d7a3678e73c0ce0afb487db4/68747470733a2f2f706f7365722e707567782e6f72672f61667465726275672f61667465726275672d7969692f762f756e737461626c65)](https://packagist.org/packages/afterbug/afterbug-yii)[![License](https://camo.githubusercontent.com/ff3f80b78be7426788671f17b6106942cfaf76fa95096f02714fb2ded9890818/68747470733a2f2f706f7365722e707567782e6f72672f61667465726275672f61667465726275672d7969692f6c6963656e7365)](https://packagist.org/packages/afterbug/afterbug-yii)

This library detects errors and exceptions in your Yii Framework application and reports them to AfterBug for alerts and reporting.

Features
--------

[](#features)

- Automatically report exceptions and errors
- Send customized diagnostic data
- Attach user information to determine how many people are affected by the error.

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

[](#installation)

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

Either run

```
composer require afterbug/afterbug-yii "~1.0"

```

or Add `afterbug/afterbug-yii` to your composer.json

```
"afterbug/afterbug-yii": "~1.0"

```

Usage
-----

[](#usage)

Once the extension is installed, simply modify your application configuration as follows:

```
$config = [
    // ...
    'components' => [
        'afterbug' => [
            'class' => 'AfterBug\AfterBugYii\AfterBug',
            'apiKey' => 'YOUR_AFTERBUG_API_KEY',
        ],
        // ...
        'errorHandler' => [
            'class' => 'AfterBug\AfterBugYii\Exceptions\ErrorHandler',
            'errorAction' => 'site/error',
        ],
    ]
];
```

### Exclude exceptions

[](#exclude-exceptions)

```
$config = [
    // ...
    'components' => [
        'afterbug' => [
            'class' => 'AfterBug\AfterBugYii\AfterBug',
            'apiKey' => 'YOUR_AFTERBUG_API_KEY',
            'excludeExceptions' => ['yii\web\NotFoundHttpException']
        ],
    ]
];
```

### Callbacks

[](#callbacks)

Set a callback to customize the data.

```
$config = [
    // ...
    'components' => [
        'afterbug' => [
            'class' => 'AfterBug\AfterBugYii\AfterBug',
            'apiKey' => 'YOUR_AFTERBUG_API_KEY',
            'on beforeNotify' => function ($event) {
                $event->client->setMetaData([
                    'custom' => 'Your custom data',
                ]);
            }
        ],
    ]
];
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~1 days

Total

3

Last Release

2923d ago

### Community

Maintainers

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

---

Top Contributors

[![alfa6661](https://avatars.githubusercontent.com/u/3650559?v=4)](https://github.com/alfa6661 "alfa6661 (18 commits)")

### Embed Badge

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

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

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)

PHPackages © 2026

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