PHPackages                             oaksoftwaredev/yii-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. oaksoftwaredev/yii-rollbar

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

oaksoftwaredev/yii-rollbar
==========================

Rollbar Yii Extension

1.1.3(3y ago)0173BSD-3-ClausePHPPHP &gt;=7.0

Since Sep 15Pushed 3y agoCompare

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

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Rollbar Yii Component
=====================

[](#rollbar-yii-component)

[![Packagist](https://camo.githubusercontent.com/87c3c7899da748b51e86a7f375046d2b9da73e8bc703d3cdb86c8c62d3f7dbf0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6261696261726174736b792f7969692d726f6c6c6261722e737667)](https://github.com/baibaratsky/yii-rollbar/blob/master/LICENSE.md)[![Dependency Status](https://camo.githubusercontent.com/bd3363d142aaf93f7114c5b02b264e5fb20f0cf264f14ca8f5f5b7bfff819be1/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3535333135636234313065373134313231313030306663382f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/55315cb410e7141211000fc8)[![Packagist](https://camo.githubusercontent.com/da45c162fe3bc7eaa7858cb1385a692257611382c8bde860f9c014e93a28ea98/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6261696261726174736b792f7969692d726f6c6c6261722e737667)](https://packagist.org/packages/baibaratsky/yii-rollbar)[![Packagist](https://camo.githubusercontent.com/fa1795541671940a1fc7493ef88ef771f905778c44296adc7eeed6adbcdcf369/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6261696261726174736b792f7969692d726f6c6c6261722e737667)](https://packagist.org/packages/baibaratsky/yii-rollbar)

Rollbar Yii Component is the way to integrate [Rollbar](http://rollbar.com/) service with your Yii 1.\* application. For Yii2 use [yii2-rollbar](https://github.com/baibaratsky/yii2-rollbar).

The code of this project has been forked from [Ratchetio Component](https://github.com/yiiext/ratchetio-component/tree/5e09ebc042d3c6ec0f69a208395831f05520f88f).

2022-09-13: Forked and updated to rollbar 2.1.0

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

[](#installation)

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

    To install, either run

    ```
    $ php composer.phar require oaksoftwaredev/yii-rollbar:1.1.*

    ```

    or add

    ```
    "oaksoftwaredev/yii-rollbar": "1.1.*"

    ```

    to the `require` section of your `composer.json` file.
2. Add `rollbar` component to the `main.php` config:

    ```
    // ...
    'components' => array(
        // ...
        'rollbar' => array(
            'class' => 'application.vendor.oaksoftwaredev.yii-rollbar.RollbarComponent', // adjust path if needed
            'access_token' => 'your_serverside_rollbar_token',
        ),
    ),
    ```
3. Adjust `main.php` config to preload the component:

    ```
    'preload' => array('log', 'rollbar'),
    ```
4. Set `RollbarErrorHandler` as error handler:

    ```
    'components' => array(
        // ...
        'errorHandler' => array(
            'class' => 'application.vendor.oaksoftwaredev.yii-rollbar.RollbarErrorHandler',
            // ...
        ),
    ),
    ```

    You can also pass some additional rollbar options in the component config, refer to the [Rollbar documentation](https://rollbar.com/docs/notifier/rollbar-php/#configuration-reference)for all available options.

    A good idea is to specify `environment` as:

    ```
    'environment' => isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'cli_' . php_uname('n'),
    ```

    You can specify alias of your project root directory for linking stack traces (`application` by default):

    ```
    'root' => 'root',
    ```

Rollbar Log Route
-----------------

[](#rollbar-log-route)

You may want to collect your logs produced by `Yii::log()` in Rollbar. Put the following code in your config and enjoy:

```
'components' => array(
    // ...
    'log' => array(
        // ...
        'routes' => array(
            array(
                'class' => 'application.vendor.oaksoftwaredev.yii-rollbar.RollbarLogRoute',
                'levels' => 'error, warning, info',

                // You may specify the name of the Rollbar Yii Component ('rollbar' by default)
                'rollbarComponentName' => 'rollbar',
            ),
        ),
    ),
),
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

5

Last Release

1201d ago

### Community

Maintainers

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

---

Top Contributors

[![baibaratsky](https://avatars.githubusercontent.com/u/1774061?v=4)](https://github.com/baibaratsky "baibaratsky (30 commits)")[![OakSoftwareDev](https://avatars.githubusercontent.com/u/113594611?v=4)](https://github.com/OakSoftwareDev "OakSoftwareDev (7 commits)")[![kirs](https://avatars.githubusercontent.com/u/522155?v=4)](https://github.com/kirs "kirs (5 commits)")[![matjack1](https://avatars.githubusercontent.com/u/65402?v=4)](https://github.com/matjack1 "matjack1 (4 commits)")[![endorama](https://avatars.githubusercontent.com/u/526307?v=4)](https://github.com/endorama "endorama (3 commits)")[![samdark](https://avatars.githubusercontent.com/u/47294?v=4)](https://github.com/samdark "samdark (3 commits)")[![sergebezborodov](https://avatars.githubusercontent.com/u/1086402?v=4)](https://github.com/sergebezborodov "sergebezborodov (3 commits)")[![StuMP90](https://avatars.githubusercontent.com/u/11777987?v=4)](https://github.com/StuMP90 "StuMP90 (2 commits)")[![brianr](https://avatars.githubusercontent.com/u/12275?v=4)](https://github.com/brianr "brianr (1 commits)")[![skjb](https://avatars.githubusercontent.com/u/998458?v=4)](https://github.com/skjb "skjb (1 commits)")[![ddebin](https://avatars.githubusercontent.com/u/458007?v=4)](https://github.com/ddebin "ddebin (1 commits)")[![cebe](https://avatars.githubusercontent.com/u/189796?v=4)](https://github.com/cebe "cebe (1 commits)")

---

Tags

logmonitoringdebugexceptionerroryiirollbarratchetio

### Embed Badge

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

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

Sentry for the Yii PHP framework.

1110.8k](/packages/crisu83-yii-sentry)

PHPackages © 2026

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