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

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

accessd/yii2-rollbar
====================

Rollbar Yii2 Error Handler

1.0.1(3y ago)02.2kMITPHPPHP &gt;=5.4

Since Jan 12Pushed 2y agoCompare

[ Source](https://github.com/gigtest/yii2-rollbar)[ Packagist](https://packagist.org/packages/accessd/yii2-rollbar)[ Docs](http://github.com/accessd/yii2-rollbar)[ RSS](/packages/accessd-yii2-rollbar/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist accessd/yii2-rollbar "*"
```

or add

```
"accessd/yii2-rollbar": "*"
```

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

Usage
-----

[](#usage)

All of these blocks may be included in one config file (frontend/config/main-local.php) for quite simple applications.

Your most global main.php file:

```
'bootstrap' => ['rollbar'],
'components' => [
    'rollbar' => [
        'class' => 'accessd\yii2_rollbar\RollbarComponent',
        'accessToken' => 'POST_SERVER_ITEM_ACCESS_TOKEN',
    ],
],
```

main-local.php (common/config/main-local.php for advanced app template):

```
'components' => [
  'rollbar' => [
      'environment' => 'production', // you environment name
  ],
],
```

web error handler (frontend/config/main-local.php for advanced app template):

```
'components' => [
  'errorHandler' => [
      // handling uncaught PHP exceptions, execution and fatal errors
      'class' => 'accessd\yii2_rollbar\WebErrorHandler',
  ],
],
```

console error handler (console/config/main-local.php for advanced app template):

```
'components' => [
  'errorHandler' => [
      // handling uncaught PHP exceptions, execution and fatal errors
      'class' => 'accessd\yii2_rollbar\ConsoleErrorHandler',
  ],
],
```

Does it work?
-------------

[](#does-it-work)

You can just write incorrect settings for database connection and refresh a site page or execute any console command. Rollbar issues will appear at the Dashboard in a few seconds.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.8% 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

Unknown

Total

1

Last Release

1216d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/517aae4026f04d2ffeead71e989baa9e75d1f398725a937df88632fa0ba41561?d=identicon)[error-feature](/maintainers/error-feature)

---

Top Contributors

[![ladamalina](https://avatars.githubusercontent.com/u/2093425?v=4)](https://github.com/ladamalina "ladamalina (14 commits)")[![accessd](https://avatars.githubusercontent.com/u/592430?v=4)](https://github.com/accessd "accessd (8 commits)")[![Ja-D0](https://avatars.githubusercontent.com/u/127515726?v=4)](https://github.com/Ja-D0 "Ja-D0 (2 commits)")[![mitmx](https://avatars.githubusercontent.com/u/37775171?v=4)](https://github.com/mitmx "mitmx (2 commits)")

---

Tags

monitoringexceptionerroryii2rollbarratchetio

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/accessd-yii2-rollbar/health.svg)](https://phpackages.com/packages/accessd-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)[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)
