PHPackages                             eroteev/yii2-rollbar - 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. eroteev/yii2-rollbar

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

eroteev/yii2-rollbar
====================

Rollbar logging for Yii2 framework

1.0.7(7y ago)039.8kMITPHPPHP &gt;=7.1

Since Aug 28Pushed 7y ago2 watchersCompare

[ Source](https://github.com/eroteev/yii2-rollbar)[ Packagist](https://packagist.org/packages/eroteev/yii2-rollbar)[ Docs](http://github.com/eroteev/yii2-rollbar)[ RSS](/packages/eroteev-yii2-rollbar/feed)WikiDiscussions master Synced today

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

Rollbar for Yii2
================

[](#rollbar-for-yii2)

Simplified rollbar monitoring integration for Yii2 applications.

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

[](#installation)

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

To install add

```
"eroteev/yii2-rollbar": "^1.0.0"

```

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

Setup instructions
------------------

[](#setup-instructions)

1. Add the component configuration in your *global* config file:

```
'bootstrap' => ['rollbar'],
'components' => [
    'rollbar' => [
        'class' => 'eroteev\rollbar\Rollbar',
        'config' => [
            'access_token' => 'POST_SERVER_ITEM_ACCESS_TOKEN',
        ]
    ],
],
```

2. Add the *web* error handler configuration in your *web* config file:

```
'components' => [
    'errorHandler' => [
        'class' => 'eroteev\rollbar\error_handler\WebErrorHandler'
    ],
],
```

3. Add the *console* error handler configuration in your *console* config file:

```
'components' => [
    'errorHandler' => [
        'class' => 'eroteev\rollbar\error_handler\ConsoleErrorHandler'
    ],
],
```

4. Add log target in your *global* config file:

```
'log' => [
    'targets' => [
        [
            'class' => 'eroteev\rollbar\log\RollbarTarget',
            'levels' => ['error'], // Log levels you want to appear in Rollbar
            'categories' => ['application'],
        ],
    ],
],
```

Ignore specific exceptions
--------------------------

[](#ignore-specific-exceptions)

To ignore specific exceptions you can update the component configuration in your *global* config file:

```
'components' => [
    'rollbar' => [
        'class' => 'eroteev\rollbar\Rollbar',
        'config' => [
            // ...
            'check_ignore' => function ($isUncaught, $toLog, $payload) {
                return eroteev\rollbar\helpers\IgnoreExceptionHelper::checkIgnore($toLog, [
                       ['yii\web\HttpException', 'statusCode' => [400, 404]],
                       ['yii\db\Exception', 'getCode' => [2002]],
                   ]
                );
            }
        ]
    ],
],
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

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

Total

8

Last Release

2811d ago

Major Versions

0.1.0 → 1.0.02018-08-28

### Community

Maintainers

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

---

Top Contributors

[![eroteev](https://avatars.githubusercontent.com/u/472273?v=4)](https://github.com/eroteev "eroteev (8 commits)")

---

Tags

logloggingdebugerroryii2yiirollbarwarning

### Embed Badge

![Health badge](/badges/eroteev-yii2-rollbar/health.svg)

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

###  Alternatives

[baibaratsky/yii2-rollbar

Rollbar for Yii2

35130.5k](/packages/baibaratsky-yii2-rollbar)[rollbar/rollbar-laravel

Rollbar error monitoring integration for Laravel projects

14110.4M7](/packages/rollbar-rollbar-laravel)[analog/analog

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

3451.5M24](/packages/analog-analog)[jenssegers/rollbar

Rollbar error monitoring integration for Laravel projects

3301.1M2](/packages/jenssegers-rollbar)

PHPackages © 2026

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