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

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

ladamalina/yii2-rollbar
=======================

Rollbar Yii2 Error Handler

113.7k↓22.2%5PHP

Since Aug 6Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)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 ladamalina/yii2-rollbar "*"
```

or add

```
"ladamalina/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, but here I`m describing installation for real "advanced" monsters like our [elections platform](http://igraprestolov.vybory.tv/).

Your most global main.php file:

```
'bootstrap' => ['rollbar'],
'components' => [
    'rollbar' => [
        'class' => 'ladamalina\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' => 'ladamalina\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' => 'ladamalina\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

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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/ec51292b55cf24ed12f90da9a7d26acd084af994544a6ffe4d436601931f3315?d=identicon)[ladamalina](/maintainers/ladamalina)

---

Top Contributors

[![ladamalina](https://avatars.githubusercontent.com/u/2093425?v=4)](https://github.com/ladamalina "ladamalina (18 commits)")[![SAP55](https://avatars.githubusercontent.com/u/3145919?v=4)](https://github.com/SAP55 "SAP55 (2 commits)")[![levcoder](https://avatars.githubusercontent.com/u/30693625?v=4)](https://github.com/levcoder "levcoder (1 commits)")

### Embed Badge

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

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

###  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)
