PHP code example of nkovacs / yii2-errbit

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

    

nkovacs / yii2-errbit example snippets


...
    'components' => [
        'errorHandler' => [
            'class' => 'nkovacs\errbit\ConsoleErrorHandler',
            'errbit' => [
                'api_key' => 'your api key',
                'host' => 'errbit.example.org',
            ],
        ],
    ],
...

...
    'components' => [
        'errorHandler' => [
            'class' => 'nkovacs\errbit\ConsoleErrorHandler',
            'errbit' => [
                'api_key' => 'your api key',
                'host' => 'errbit.example.org',
            ],
        ],
    ],
...

...
    'components' => [
        'errorHandler' => [
            'class' => 'nkovacs\errbit\ConsoleErrorHandler',
            `errbit` => [
                'api_key' => 'your api key',
                'host' => 'errbit.example.org',
                'environment_name' => 'development',
            ],
        ],
    ],
...

...
    'components' => [
        'errorHandler' => [
            'class' => 'nkovacs\errbit\WebErrorHandler',
            `errbit` => [
                'api_key' => 'your api key',
                'host' => 'errbit.example.org',
            ],
            'jsNotifier' => true,
        ],
    ],
...

php composer.phar