PHP code example of chrisshick / cakephp-airbrake
1. Go to this page and download the library: Download chrisshick/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/ */
chrisshick / 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'