Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/runwithspeerit/airbrake-bundle
Airbrake API v3 integration for Symfony2
https://github.com/runwithspeerit/airbrake-bundle
airbrake symfony symfony-bundle symfony3
Last synced: 3 months ago
JSON representation
Airbrake API v3 integration for Symfony2
- Host: GitHub
- URL: https://github.com/runwithspeerit/airbrake-bundle
- Owner: runwithspeerit
- Fork: true (aminin/airbrake-bundle)
- Created: 2017-05-24T15:33:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-08T18:05:21.000Z (about 7 years ago)
- Last Synced: 2024-09-25T15:27:23.391Z (4 months ago)
- Topics: airbrake, symfony, symfony-bundle, symfony3
- Language: PHP
- Size: 26.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SpeeritAirbrakeBundle
This is a fork of the original https://github.com/aminin/airbrake-bundle bundle big thanks to its developer/s
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/b478929b-5ec1-4ff8-80f8-32d59ef5e759/small.png)](https://insight.sensiolabs.com/projects/b478929b-5ec1-4ff8-80f8-32d59ef5e759)
[![Build Status](https://travis-ci.org/runwithspeerit/airbrake-bundle.svg?branch=master)](https://travis-ci.org/runwithspeerit/airbrake-bundle)
[![Latest Stable Version](https://poser.pugx.org/speerit/airbrake-bundle/v/stable)](https://packagist.org/packages/speerit/airbrake-bundle)
[![Total Downloads](https://poser.pugx.org/speerit/airbrake-bundle/downloads)](https://packagist.org/packages/speerit/airbrake-bundle)
[![Latest Unstable Version](https://poser.pugx.org/speerit/airbrake-bundle/v/unstable)](https://packagist.org/packages/speerit/airbrake-bundle)
[![License](https://poser.pugx.org/speerit/airbrake-bundle/license)](https://packagist.org/packages/speerit/airbrake-bundle)## Prerequisites
This version of the bundle requires Symfony 3.0+
## Installation
### Step 1: Download SpeeritAirbrakeBundle using composer
Add SpeeritAirbrakeBundle in your composer.json:
```shell
$ composer require speerit/airbrake-bundle
```### Step 2: Enable the bundle
Enable the bundle in the kernel:
```php
// app/AppKernel.phppublic function registerBundles()
{
$bundles = array(
// ...
new Speerit\AirbrakeBundle\SpeeritAirbrakeBundle(),
);
}
```### Step 3: Configure the SpeeritAirbrakeBundle
Add the following configuration to your `config.yml` file
```yml
# app/config/config.yml
speerit_airbrake:
project_id: YOUR-PROJECT-ID
project_key: YOUR-API-KEY
```## Configuration reference
```yml
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](Resources/meta/LICENSE)