speerit/airbrake-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Airbrake API v3 integration for Symfony3 >=

Installs: 4 029

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 9

Type:symfony-bundle

2.2.0 2017-12-08 18:01 UTC

This package is not auto-updated.

Last update: 2021-12-29 19:43:16 UTC


README

This is a fork of the original https://github.com/aminin/airbrake-bundle bundle big thanks to its developer/s

SensioLabsInsight Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Prerequisites

This version of the bundle requires Symfony 3.0+

Installation

Step 1: Download SpeeritAirbrakeBundle using composer

Add SpeeritAirbrakeBundle in your composer.json:

$ composer require speerit/airbrake-bundle

Step 2: Enable the bundle

Enable the bundle in the kernel:

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Speerit\AirbrakeBundle\SpeeritAirbrakeBundle(),
    );
}

Step 3: Configure the SpeeritAirbrakeBundle

Add the following configuration to your config.yml file

# app/config/config.yml
speerit_airbrake:
    project_id:  YOUR-PROJECT-ID
    project_key: YOUR-API-KEY

Configuration reference

speerit_airbrake:
    # This parameter is required
    # For Errbit the exact value of project_id doesn't matter
    project_id: YOUR-PROJECT-ID

    # Omit this key if you need to enable/disable the bundle temporarily 
    # If not given, this bundle will ignore all exceptions and won't send any data to remote.
    project_key: YOUR-API-KEY

    # By default, it is set to api.airbrake.io.
    # A host is a web address containing a scheme ("http" or "https"), a host and a port.
    # You can omit the scheme ("https" will be assumed) and the port (80 or 443 will be assumed).
    host: http://errbit.localhost:8000

    # You might want to ignore some exceptions such as http not found, access denied etc.
    # By default this bundle ignores all HttpException instances. (includes HttpNotFoundException, AccessDeniedException)
    # To log all exceptions leave this array empty.
    ignored_exceptions: ["Symfony\Component\HttpKernel\Exception\HttpException"]

Usage

Once configured, bundle will automatically send exceptions/errors to airbrake server.

License

This bundle is under the MIT license. See the complete license in the Resources/meta/LICENSE