PHP code example of easyconn / yii1-sentry

1. Go to this page and download the library: Download easyconn/yii1-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/ */

    

easyconn / yii1-sentry example snippets


...
'preload' => [
    ...
    'sentry',
],
...
'components' => [
    'sentry' => [
		'class' => Intersvyaz\YiiSentry\SentryComponent::class,
		'dsn' => 'https://X1:[email protected]/2',
		'useRavenJs' => true,
		'ravenJsPlugins' => ['jquery'],
		'enabled' => !YII_DEBUG,
	],
    ...
    'log' => [
        'class' => 'CLogRouter',
        'routes' => [
             ...
            [
				'class' => Intersvyaz\YiiSentry\SentryLogRoute::class,
				'levels' => 'error, warning',
				'except' => 'exception.CHttpException.404, exception.CHttpException.400, exception.CHttpException.403',
			],
		],
    ],
],
...