2017 © Pedro Peláez
 

cakephp-plugin cakephp-airbrake

A CakePHP 3.x plugin to use Airbrake for errors and exceptions

image

chrisshick/cakephp-airbrake

A CakePHP 3.x plugin to use Airbrake for errors and exceptions

  • Tuesday, March 1, 2016
  • by chrisShick
  • Repository
  • 1 Watchers
  • 3 Stars
  • 3,781 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 11 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

AirbrakeCake

A plugin to seamlessly integrate Airbrake with CakePHP 3 for errors and exceptions., (*1)

Installation via Composer

composer require chrisshick/cakephp-airbrake

Setup

You don't have to enable the Plugin because it uses an error handler. Therefore, all you have to do is replace this line in the app/Config/bootstrap.php :, (*2)

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

with this line:, (*3)

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

Then, set up the configuration in the app/Config/app.php file:, (*4)

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

Configuration explained

The configuration takes the following keys:, (*5)

  'apiKey', 'options', 'debugOption'

The apiKey is the api key that Airbrake generates for you., (*6)

The options array is the additional Airbrake parameters you want to add. You can view the additional parameters here: PHPAirbrake, (*7)

The debugOption key expects a true or false value that lets you set whether or not you want to log exceptions and errors when debug is on or off. If you want to log the errors to Airbrake when debug is on then set the debugOption key to true., (*8)

The Versions

01/03 2016

dev-master

9999999-dev https://github.com/chrisShick/AirbrakeCake

A CakePHP 3.x plugin to use Airbrake for errors and exceptions

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin cakephp airbrake cakephp3

15/02 2015

1.0.3

1.0.3.0

A CakePHP plugin to use Airbrake for errors and exceptions.

  Sources   Download

MIT

The Requires

 

by Avatar morrislaptop

15/01 2015

1.0.2

1.0.2.0

A CakePHP plugin to use Airbrake for errors and exceptions.

  Sources   Download

MIT

The Requires

 

by Avatar morrislaptop

03/08 2014

1.0.1

1.0.1.0

A CakePHP plugin to use Airbrake for errors and exceptions.

  Sources   Download

MIT

The Requires

 

by Avatar morrislaptop