PHP code example of tatarko / yii-sentry

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

    

tatarko / yii-sentry example snippets


'components' => array(
	'log' => array(
		'class' => 'CLogRouter',
		'routes' => array(
			// your other log routers
			array(
				'class' => 'Tatarko\\YiiSentry\\LogRoute',
				'levels' => 'error,warning',
				// 'enabled' => !YII_DEBUG,
			),
		),
	),
	'sentry' => array(
		'class' => 'Tatarko\\YiiSentry\\Client',
		'dsn' => '', // Your's DSN from Sentry
	),
)
shell
php composer.phar