PHPackages                             afterbug/afterbug-laravel - 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. afterbug/afterbug-laravel

ActiveLibrary

afterbug/afterbug-laravel
=========================

AfterBug error monitoring for Laravel applications.

1.0.0(8y ago)323MITPHPPHP &gt;=5.5

Since May 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/AfterBug/afterbug-laravel)[ Packagist](https://packagist.org/packages/afterbug/afterbug-laravel)[ RSS](/packages/afterbug-afterbug-laravel/feed)WikiDiscussions master Synced yesterday

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

AfterBug for Laravel
====================

[](#afterbug-for-laravel)

[![StyleCI](https://camo.githubusercontent.com/a881d37098be5868158080d988e8457ae83a205012d7f2e821720690ff7dda48/68747470733a2f2f7374796c6563692e696f2f7265706f732f3132383336373834322f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/66539893)[![Total Downloads](https://camo.githubusercontent.com/3adb5f87b97ffb30e8458a86a72c99f91e51b6b916008ba0bafa827301357b09/68747470733a2f2f706f7365722e707567782e6f72672f61667465726275672f61667465726275672d6c61726176656c2f646f776e6c6f616473)](https://packagist.org/packages/afterbug/afterbug-laravel)[![Latest Stable Version](https://camo.githubusercontent.com/7efb9dc66798a05b2c156bdabeee3dde8b683cdfe1d5226a5b0e8d582f3f6858/68747470733a2f2f706f7365722e707567782e6f72672f61667465726275672f61667465726275672d6c61726176656c2f762f737461626c65)](https://packagist.org/packages/afterbug/afterbug-laravel)[![Latest Unstable Version](https://camo.githubusercontent.com/e9675fad44311a03669630c8027a747e7e24d087fcc2c2a626ed7f5ab9681d8c/68747470733a2f2f706f7365722e707567782e6f72672f61667465726275672f61667465726275672d6c61726176656c2f762f756e737461626c65)](https://packagist.org/packages/afterbug/afterbug-laravel)[![License](https://camo.githubusercontent.com/4410caa76be4301775e1ab827dd4d49938dbf16304628223dfcc5d63deb35bfb/68747470733a2f2f706f7365722e707567782e6f72672f61667465726275672f61667465726275672d6c61726176656c2f6c6963656e7365)](https://packagist.org/packages/afterbug/afterbug-laravel)

This library detects errors and exceptions in your Laravel application and reports them to AfterBug for alerts and reporting.

Features
--------

[](#features)

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

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require afterbug/afterbug-laravel "~1.0"

```

or Add `afterbug/afterbug-laravel` to your composer.json

```
"afterbug/afterbug-laravel": "~1.0"

```

Usage
-----

[](#usage)

If you're on Laravel 5.4 or earlier, you need to register the ServiceProvider in config/app.php

```
'providers' => [
    // ...
    AfterBug\AfterBugLaravel\AfterBugServiceProvider::class,
],
```

Publish the default configuration

```
php artisan vendor:publish --provider='AfterBug\AfterBugLaravel\AfterBugServiceProvider'

```

Add AfterBug reporting to app/Exceptions/Handler.php:

```
public function report(Exception $e)
{
    if ($this->shouldReport($e)) {
        AfterBug::catchException($e);
    }

    return parent::report($e);
}

```

#### Callbacks

[](#callbacks)

Set a callback to customize the data.

```
AfterBug::registerCallback(function ($config) {
    $config->setMetaData([
        'custom' => 'Your custom data',
    ]);
})->catchException($e);
```

#### Sentinel

[](#sentinel)

If you are using sentinel instead of laravel Auth, you have to setup user callback manually.

```
AfterBug::registerCallback(function ($config) {
    if (Sentinel::check()) {
        $config->setUser(
            Sentinel::getUser()->toArray()
        );
    }
})->catchException($e);
```

### Add your AfterBug Api Key to .env:

[](#add-your-afterbug-api-key-to-env)

```
AFTERBUG_API_KEY=Your_API_Key

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2924d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ef0480adb6c2494f21910eb4e69ab92b02e075bfdad37c242fed4f20d0e5412c?d=identicon)[alfa6661](/maintainers/alfa6661)

---

Top Contributors

[![alfa6661](https://avatars.githubusercontent.com/u/3650559?v=4)](https://github.com/alfa6661 "alfa6661 (12 commits)")

### Embed Badge

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

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

###  Alternatives

[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[dragon-code/migrate-db

Easy data transfer from one database to another

15717.4k](/packages/dragon-code-migrate-db)

PHPackages © 2026

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