PHPackages                             twotwentyseven/laravel-airbrake - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. twotwentyseven/laravel-airbrake

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

twotwentyseven/laravel-airbrake
===============================

Laravel service provider for Airbrake https://github.com/airbrake/phpbrake

0.5(6y ago)055MITPHPPHP &gt;=7.2

Since Mar 12Pushed 6y agoCompare

[ Source](https://github.com/otherwaylondon/laravel-airbrake)[ Packagist](https://packagist.org/packages/twotwentyseven/laravel-airbrake)[ RSS](/packages/twotwentyseven-laravel-airbrake/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (2)Versions (7)Used By (0)

Laravel Airbrake
================

[](#laravel-airbrake)

This is a Laravel service provider for the latest Airbrake PHP package

It is a modified fork of  to allow support for Laravel 6.0. Thanks to Theo Kouzelis for doing the hard work.

The service provider will configure an instance of Airbrake\\Notifier with an ID, key and environment name.

Install
-------

[](#install)

Require via composer.

```
composer require twotwentyseven/laravel-airbrake

```

Publish and fill out the config/airbrake.php file with your ID and key.

```
php artisan vendor:publish --provider="Twotwentyseven\LaravelAirbrake\ServiceProvider"

```

Config
------

[](#config)

The variables projectId and projectKey are required. Leave the rest empty to use Airbrake's default values.

```
    'projectId'     => '',
    'projectKey'    => '',
    'environment'   => env('APP_ENV', 'production'),

    //leave the following options empty to use defaults

    'appVersion'    => '',
    'host'          => '',
    'rootDirectory' => '',
    'httpClient'    => '',

```

Basic Usage
-----------

[](#basic-usage)

### &gt;=5.6 Custom Channel

[](#56-custom-channel)

Add the custom "airbrake" channel (outlined below) to config/logging.php. Then add the "airbrake" channel to the stack channel.

```
//config/logging.php

    'channels' => [
        'stack' => [
            'driver' => 'stack',
            'channels' => ['single', 'airbrake'],
        ],

        'airbrake' => [
            'driver' => 'custom',
            'via' => Twotwentyseven\LaravelAirbrake\AirbrakeLogger::class,
            'level' => 'error',
        ],
    ]

```

### Exception Handler

[](#exception-handler)

To notify airbrake through the laravel exception handler as shown in the following code snippet. Inject or make a new instance of a Airbrake\\Notifier object then pass a exception to the notify function.

```
//app/Exceptions/Handler.php

/**
 * Report or log an exception.
 *
 * This is a great spot to send exceptions to Sentry, Bugsnag, etc.
 *
 * @param  \Exception  $exception
 * @return void
 */
public function report(Exception $exception)
{
    if ($this->shouldReport($exception)) {
        $airbrakeNotifier = \App::make('Airbrake\Notifier');
        $airbrakeNotifier->notify($exception);
    }

    parent::report($exception);
}

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~256 days

Recently: every ~289 days

Total

6

Last Release

2479d ago

PHP version history (2 changes)0.1PHP &gt;=5.4

0.5PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/37216142?v=4)[Nathan Bentley](/maintainers/natbentley)[@natbentley](https://github.com/natbentley)

---

Top Contributors

[![TheoKouzelis](https://avatars.githubusercontent.com/u/4980126?v=4)](https://github.com/TheoKouzelis "TheoKouzelis (12 commits)")[![natbentley](https://avatars.githubusercontent.com/u/37216142?v=4)](https://github.com/natbentley "natbentley (4 commits)")

---

Tags

laravelairbrake

### Embed Badge

![Health badge](/badges/twotwentyseven-laravel-airbrake/health.svg)

```
[![Health](https://phpackages.com/badges/twotwentyseven-laravel-airbrake/health.svg)](https://phpackages.com/packages/twotwentyseven-laravel-airbrake)
```

###  Alternatives

[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k127.1M194](/packages/sentry-sentry-laravel)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M157](/packages/spatie-laravel-health)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M342](/packages/psalm-plugin-laravel)[keepsuit/laravel-opentelemetry

OpenTelemetry integration for laravel

167558.4k](/packages/keepsuit-laravel-opentelemetry)[spatie/laravel-flare

Send Laravel errors to Flare

111.4M6](/packages/spatie-laravel-flare)[kouz/laravel-airbrake

Laravel service provider for Airbrake https://github.com/airbrake/phpbrake

26300.1k](/packages/kouz-laravel-airbrake)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
