rmrevin / yii2-rollbar
Yii2 error handler rollbar
Installs: 2 357
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- rollbar/rollbar: ~0.18
- yiisoft/yii2: ~2.0
This package is not auto-updated.
Last update: 2024-09-28 17:49:16 UTC
README
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', ], ], // ... ];