PHP code example of blink / sentry

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

    

blink / sentry example snippets


'sentry' => [
    'class' => \blink\sentry\Sentry::class,
    'dsn' => 'The dsn',
    'environments' => ['prod'], // The environments that should report errors to Sentry
],

'errorHandler' => [
    'class' => blink\sentry\ErrorHandler::class
],