PHP code example of gelige / yii2-rollbar-simple

1. Go to this page and download the library: Download gelige/yii2-rollbar-simple library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

gelige / yii2-rollbar-simple example snippets


 'components' => [
     'rollbar' => [
         'class' => 'gelige\yii\rollbar\Rollbar',
         'accessToken' => 'POST_SERVER_ITEM_ACCESS_TOKEN',
     ],
 ],
 

 'components' => [
     'log' => [
         'targets' => [
             'class' => 'gelige\yii\rollbar\RollbarTarget',
             // 'except' => ['yii\web\HttpException:404'],
             // 'levels' => YII_DEBUG ? ['error', 'warning'] : ['error'],
         ],
     ],
 ],
 

 $ php composer.phar