2017 © Pedro Peláez
 

library afterbug

AfterBug error monitoring for PHP applications.

image

afterbug/afterbug

AfterBug error monitoring for PHP applications.

  • Thursday, May 24, 2018
  • by alfa6661
  • Repository
  • 1 Watchers
  • 0 Stars
  • 23 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 5 % Grown

The README.md

AfterBug for PHP

StyleCI Total Downloads Latest Stable Version Latest Unstable Version License, (*1)

This library detects errors and exceptions in your PHP application and reports them to AfterBug for alerts and reporting., (*2)

Features

  • Automatically report exceptions and errors
  • Send customized diagnostic data
  • Attach user information to determine how many people are affected by the error.

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

composer require afterbug/afterbug "~1.0"

Add afterbug/afterbug to your composer.json, (*5)

"afterbug/afterbug": "~1.0"

Usage

$afterbug = AfterBug\Client::make('AFTERBUG_API_KEY')

// Register AfterBug error handler
AfterBug\Exceptions\ErrorHandler::register($afterbug);

// will be reported by the exception handler
throw new \Exception('testing exception handler');

Exclude exceptions

Sets for which exception classes we should not send to AfterBug., (*6)

$afterbug->registerCallback(function ($config) {
    $config->setExcludeExceptions(['Namespace\ExceptionClass']);
});

Callbacks

Set a callback to customize the data., (*7)

$afterbug->registerCallback(function ($config) {
    $config->setEnvironment('Production')
        ->setUser([
            'id' => 1,
            'name' => 'Alfa'
        ])
        ->setMetaData([
            'custom' => 'Your custom data'
        ]);
});

Integration with frameworks

Other packages exists to integrate this SDK into the most common frameworks., (*8)

Official Integrations

The following integrations are supported by AfterBug team., (*9)

The Versions

24/05 2018

dev-master

9999999-dev

AfterBug error monitoring for PHP applications.

  Sources   Download

MIT

The Requires

 

24/05 2018

1.0.2

1.0.2.0

AfterBug error monitoring for PHP applications.

  Sources   Download

MIT

The Requires

 

11/05 2018

1.0.1

1.0.1.0

AfterBug error monitoring for PHP applications.

  Sources   Download

MIT

The Requires

 

10/05 2018

1.0.0

1.0.0.0

AfterBug error monitoring for PHP applications.

  Sources   Download

MIT

The Requires