rmrevin/yii2-rollbar

Yii2 error handler rollbar

Installs: 2 358

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 2

Forks: 1

Open Issues: 0

Type:yii2-extension

1.5.0 2017-07-10 09:36 UTC

This package is not auto-updated.

Last update: 2024-10-26 18:06:42 UTC


README

License Latest Stable Version Latest Unstable Version Total Downloads

Installation

composer require "rmrevin/yii2-rollbar:~1.5"

Usage

In main config:

<?php

return [
    // ...
    'bootstrap' => [
        // ...
        'rollbar',
    ],
    'components' => [
        // ...
        'rollbar' => [
            'class' => 'rmrevin\yii\rollbar\Component',
            'accessToken' => 'YOU ACCESS TOKEN',
            'environment' => 'production',
            // ... more options see in code
        ],
    ],
    // ...
];

In main config of web application:

<?php
return [
    // ...
    'components' => [
        // ...
        'errorHandler' => [
            'class' => 'rmrevin\yii\rollbar\web\ErrorHandler',
        ],
    ],
    // ...
];

In main config of console application:

<?php
return [
    // ...
    'components' => [
        // ...
        'errorHandler' => [
            'class' => 'rmrevin\yii\rollbar\console\ErrorHandler',
        ],
    ],
    // ...
];