PHP code example of nathandentzau / drupal-honeybadger

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

    

nathandentzau / drupal-honeybadger example snippets


$config['honeybadger.settings'] = [
  'api_key' => 'YOUR API KEY',
  'environment' => [
    'filter' => [],
    '_root' => DRUPAL_ROOT,
  'environment_name' => 'THE CURRENT ENVIRONMENT',
  'handlers' => [
    'exception' => true,
    'error' => true,
  ],
  'client' => [
    'timeout' => 0,
    'proxy' => [],
  ],
  'excluded_exceptions' => [],
  'report_data' => true,
];