2017 © Pedro Peláez
 

library yii-rollbar

Rollbar Yii Extension

image

baibaratsky/yii-rollbar

Rollbar Yii Extension

  • Monday, August 7, 2017
  • by baibaratsky
  • Repository
  • 3 Watchers
  • 9 Stars
  • 6,813 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 1 Open issues
  • 19 Versions
  • 1 % Grown

The README.md

Rollbar Yii Component

Packagist Dependency Status Packagist Packagist, (*1)

Rollbar Yii Component is the way to integrate Rollbar service with your Yii 1.* application. For Yii2 use yii2-rollbar., (*2)

The code of this project has been forked from Ratchetio Component., (*3)

Installation

  1. The preferred way to install this component is through composer., (*4)

    To install, either run, (*5)

    $ php composer.phar require baibaratsky/yii-rollbar:2.3.*
    

    or add, (*6)

    "baibaratsky/yii-rollbar": "2.3.*"
    

    to the require section of your composer.json file., (*7)

  2. Add rollbar component to the main.php config:, (*8)

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

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

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

    You can also pass some additional rollbar options in the component config, refer to the Rollbar documentation for all available options., (*11)

    A good idea is to specify environment as:, (*12)

    '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):, (*13)

    'root' => 'root',
    

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:, (*14)

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

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

The Versions

07/08 2017

dev-master

9999999-dev http://github.com/baibaratsky/yii-rollbar

Rollbar Yii Extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Kir Shatrov

debug log exception yii error monitoring rollbar ratchetio ratchet.io

07/08 2017

v2.3.3

2.3.3.0 http://github.com/baibaratsky/yii-rollbar

Rollbar Yii Extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Kir Shatrov

debug log exception yii error monitoring rollbar ratchetio ratchet.io

02/08 2017

v2.3.2

2.3.2.0 http://github.com/baibaratsky/yii-rollbar

Rollbar Yii Extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Kir Shatrov

debug log exception yii error monitoring rollbar ratchetio ratchet.io

01/08 2017

v2.3.1

2.3.1.0 http://github.com/baibaratsky/yii-rollbar

Rollbar Yii Extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Kir Shatrov

debug log exception yii error monitoring rollbar ratchetio ratchet.io

13/06 2017

v2.3.0

2.3.0.0 http://github.com/baibaratsky/yii-rollbar

Rollbar Yii Extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Kir Shatrov

debug log exception yii error monitoring rollbar ratchetio ratchet.io

29/05 2017

v2.2.1

2.2.1.0 http://github.com/baibaratsky/yii-rollbar

Rollbar Yii Extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Kir Shatrov

debug log exception yii error monitoring rollbar ratchetio ratchet.io

09/05 2017

v2.2.0

2.2.0.0 http://github.com/baibaratsky/yii-rollbar

Rollbar Yii Extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Kir Shatrov

debug log exception yii error monitoring rollbar ratchetio ratchet.io

25/04 2017

v2.1.0

2.1.0.0 http://github.com/baibaratsky/yii-rollbar

Rollbar Yii Extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Kir Shatrov

debug log exception yii error monitoring rollbar ratchetio ratchet.io

27/05 2016

v2.0.4

2.0.4.0 http://github.com/baibaratsky/yii-rollbar

Rollbar Yii Extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Kir Shatrov

debug log exception yii error monitoring rollbar ratchetio ratchet.io

29/04 2016

v2.0.3

2.0.3.0 http://github.com/baibaratsky/yii-rollbar

Rollbar Yii Extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Kir Shatrov

debug log exception yii error monitoring rollbar ratchetio ratchet.io

26/04 2016

v2.0.2

2.0.2.0 http://github.com/baibaratsky/yii-rollbar

Rollbar Yii Extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Kir Shatrov

debug log exception yii error monitoring rollbar ratchetio ratchet.io

12/02 2016

v2.0.1

2.0.1.0 http://github.com/baibaratsky/yii-rollbar

Rollbar Yii Extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Kir Shatrov

debug log exception yii error monitoring rollbar ratchetio ratchet.io

30/07 2015

v2.0.0

2.0.0.0 http://github.com/baibaratsky/yii-rollbar

Rollbar Yii Extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Kir Shatrov

debug log exception yii error monitoring rollbar ratchetio ratchet.io

30/07 2015

v1.0.5

1.0.5.0 http://github.com/baibaratsky/yii-rollbar

Rollbar Yii Extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Kir Shatrov

debug log exception yii error monitoring rollbar ratchetio ratchet.io

23/06 2015

v1.0.4

1.0.4.0 http://github.com/baibaratsky/yii-rollbar

Rollbar Yii Extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Kir Shatrov

debug log exception yii error monitoring rollbar ratchetio ratchet.io

17/06 2015

v1.0.3

1.0.3.0 http://github.com/baibaratsky/yii-rollbar

Rollbar Yii Extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Kir Shatrov

debug log exception yii error monitoring rollbar ratchetio ratchet.io

04/06 2015

v1.0.2

1.0.2.0 http://github.com/baibaratsky/yii-rollbar

Rollbar Yii Extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Kir Shatrov

debug log exception yii error monitoring rollbar ratchetio ratchet.io

25/05 2015

v1.0.1

1.0.1.0 http://github.com/baibaratsky/yii-rollbar

Rollbar Yii Extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Kir Shatrov

debug log exception yii error monitoring rollbar ratchetio ratchet.io

17/04 2015

v1.0.0

1.0.0.0 http://github.com/baibaratsky/yii-rollbar

Rollbar Yii Extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Kir Shatrov

debug log exception yii error monitoring rollbar ratchetio ratchet.io