PHP code example of apoor-yadav / cakephp-airbrake

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

    

apoor-yadav / cakephp-airbrake example snippets


(new ErrorHandler(Configure::read('Error')))->register();

(new \chrisShick\AirbrakeCake\Error\AirbrakeHandler(Configure::consume('Error')))->register();

 'AirbrakeCake'=> [
        'apiKey'=>'<YOUR AIRBRAKE API KEY>',
        'options'=>[],
        'debugOption'=>false
  ]

  'apiKey', 'options', 'debugOption'