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 yesterday

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 32% 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

2430d ago

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

0.5PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/119b97c48527910cbbe4bcea0d7cc89624c2d314147d11de820f682e353f5dc0?d=identicon)[natbentley](/maintainers/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

[spatie/laravel-activitylog

A very simple activity logger to monitor the users of your website or application

5.8k45.4M309](/packages/spatie-laravel-activitylog)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[rollbar/rollbar-laravel

Rollbar error monitoring integration for Laravel projects

14110.4M7](/packages/rollbar-rollbar-laravel)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[kouz/laravel-airbrake

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

26298.1k](/packages/kouz-laravel-airbrake)[kitloong/laravel-app-logger

Laravel log for your application

101.2M8](/packages/kitloong-laravel-app-logger)

PHPackages © 2026

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