PHP code example of oleg-chulakov-studio / yii2-sentry

1. Go to this page and download the library: Download oleg-chulakov-studio/yii2-sentry 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/ */

    

oleg-chulakov-studio / yii2-sentry example snippets



  'components'  =>  [
        'errorHandler' => [
            'class' => \OlegChulakovStudio\sentry\SentryErrorWebHandler::className(),
            'mode' => YII_DEBUG,
            'errorAction'   => '/system/error',
            'sentry' => [
                'class' => OlegChulakovStudio\sentry\SentryComponent::className(),
                'url' => 'dsn'
            ],
        ]
  ]
 

 
   'components'  =>  [
         'errorHandler' => [
             'class' => \OlegChulakovStudio\sentry\SentryErrorConsoleHandler::className(),
             'mode' => YII_DEBUG,
             'sentry' => [
                 'class' => OlegChulakovStudio\sentry\SentryComponent::className(),
                 'url' => 'dsn'
             ],
         ]
   ]