2017 © Pedro Peláez
 

cakephp-plugin bugsnag-cakephp

Bugsnag Notifier for CakePHP applications

image

label305/bugsnag-cakephp

Bugsnag Notifier for CakePHP applications

  • Wednesday, June 1, 2016
  • by tscheepers
  • Repository
  • 11 Watchers
  • 3 Stars
  • 8,426 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 3 Versions
  • 10 % Grown

The README.md

Bugsnag Notifier for CakePHP

This plugin allows you to use Bugsnag with CakePHP projects. Get notified when your application breaks and view detailed logs and stack traces on specific exceptions and errors., (*1)

The BugsnagErrorHandler class extends the default CakePHP ErrorHandler so the functions of the built in class continue to work., (*2)

Quick Start

Use one of the following methods to include this library in your project., (*3)

  1. Install this plugin with Composer
  2. Place the files

Once you've included this library you should modify: app/Config/core.php. Make sure to enter your own API key., (*4)

Configure::write('BugsnagCakephp.apikey', '{yourbugsnagapikey}');

Configure::write('Exception', array(
    'handler' => 'BugsnagErrorHandler::handleException',
    'renderer' => 'ExceptionRenderer',
    'log' => true
));

Configure::write('Error', array(
    'handler' => 'BugsnagErrorHandler::handleError',
    'level' => E_ALL & ~E_DEPRECATED,
    'trace' => true
));

And make sure the plugin is loaded by adding the following line to: app/Config/bootstrap.php., (*5)

// place after the 'require' statement for the Bugsnag library.
App::uses('BugsnagErrorHandler', 'BugsnagCakephp.Lib');

Install with Composer

  1. Modify composer.json to include the following lines:, (*6)

    "require": {
      "label305/bugsnag-cakephp": "0.1.*"
    },
    ...
    "extra": {
        "installer-paths": {
            "app/Plugin/{$name}/": ["label305/bugsnag-cakephp"]
        }
    }
    
  2. And run composer update., (*7)

  3. Require the Bugsnag PHP library in app/Config/bootstrap.php., (*8)

    require ROOT . DS . 'vendor' . DS . 'bugsnag' . DS . 'bugsnag' . DS . 'build' . DS . 'bugsnag.phar';
    

Install by placing

  1. Place the files from this repository in app/Plugin/BugsnagCakephp, (*9)

  2. Download the latest bugsnag.phar to your PHP project., (*10)

  3. Require it in app/Config/bootstrap.php., (*11)

    require_once 'path' . DS . 'to' . DS . 'bugsnag.phar';
    
  4. Make sure the php extention mbstring is installed., (*12)

License

Copyright 2014 Label305 B.V., (*13)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at, (*14)

http://www.apache.org/licenses/LICENSE-2.0, (*15)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License., (*16)

The Versions

01/06 2016

dev-master

9999999-dev

Bugsnag Notifier for CakePHP applications

  Sources   Download

Apache V2

The Requires

 

cakephp bugsnag

12/01 2015

0.1.1

0.1.1.0

Bugsnag Notifier for CakePHP applications

  Sources   Download

Apache V2

The Requires

 

cakephp bugsnag

10/12 2014

0.1.0

0.1.0.0

Bugsnag Notifier for CakePHP applications

  Sources   Download

Apache V2

The Requires

 

cakephp bugsnag