PHPackages                             hajmo/larabug - 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. hajmo/larabug

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

hajmo/larabug
=============

Laravel 5.8/6.x/7.x/8.x bug notifier

2.4.4(4y ago)07MITPHP ^7.2.5|^8.0

Since Nov 3Pushed 4y agoCompare

[ Source](https://github.com/HajMo/LaraBug)[ Packagist](https://packagist.org/packages/hajmo/larabug)[ GitHub Sponsors](https://github.com/cannonb4ll)[ RSS](/packages/hajmo-larabug/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (34)Used By (0)

 [![](https://camo.githubusercontent.com/8e4cd2f95ffce5a4b4c40cc706da08644473f9ad70ddce95bdd531c50a898819/68747470733a2f2f7777772e6c6172616275672e636f6d2f696d616765732f6c6172616275672d6c6f676f2d736d616c6c2e706e67)](https://www.larabug.com)

LaraBug
=======

[](#larabug)

Laravel 6.x/7.x/8.x package for logging errors to [larabug.com](https://www.larabug.com)

[![Software License](https://camo.githubusercontent.com/a67f84da0101fd15f26280e1f30cc8e20abc7cf6230b045261aca90440b72fa1/68747470733a2f2f706f7365722e707567782e6f72672f6c6172616275672f6c6172616275672f6c6963656e73652e737667)](LICENSE.md)[![Latest Version on Packagist](https://camo.githubusercontent.com/12b95e9095cbf974674ec0e12f4a1a6acc51058d1d2577afa45decd2de84445d/68747470733a2f2f706f7365722e707567782e6f72672f6c6172616275672f6c6172616275672f762f737461626c652e737667)](https://packagist.org/packages/larabug/larabug)[![Build Status](https://github.com/larabug/larabug/workflows/tests/badge.svg)](https://github.com/larabug/larabug/actions)[![Total Downloads](https://camo.githubusercontent.com/e90d73b03ce52de88d610d874d0c49cc2cf8f7101c6b0ede9bdae870735e8f4f/68747470733a2f2f706f7365722e707567782e6f72672f6c6172616275672f6c6172616275672f642f746f74616c2e737667)](https://packagist.org/packages/larabug/larabug)

Installation on laravel
-----------------------

[](#installation-on-laravel)

You can install the package through Composer.

```
composer require larabug/larabug
```

Then publish the config and migration file of the package using artisan.

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

And adjust config file (`config/larabug.php`) with your desired settings.

Note: by default only production environments will report errors. To modify this edit your larabug configuration.

Installation on lumen
---------------------

[](#installation-on-lumen)

You can install the package through Composer.

```
composer require larabug/larabug
```

Copy the config file (`larabug.php`) to lumen config directory.

```
php -r "file_exists('config/') || mkdir('config/'); copy('vendor/larabug/larabug/config/larabug.php', 'config/larabug.php');"
```

And adjust config file (`config/larabug.php`) with your desired settings.

In `bootstrap/app.php` you will need to:

- Uncomment this line: ```
    $app->withFacades();
    ```
- Register the larabug config file: ```
    $app->configure('larabug');
    ```
- Register larabug service provider: ```
    $app->register(LaraBug\ServiceProvider::class);
    ```

Configuration variables
-----------------------

[](#configuration-variables)

All that is left to do is to define 2 env configuration variables.

```
LB_KEY=
LB_PROJECT_KEY=

```

`LB_KEY` is your profile key which authorises your account to the API.

`LB_PROJECT_KEY` is your project API key which you receive when creating a project.

Get these variables at [larabug.com](https://www.larabug.com)

Reporting unhandled exceptions
------------------------------

[](#reporting-unhandled-exceptions)

You can use LaraBug as a log-channel by adding the following config to the `channels` section in `config/logging.php`:

```
'channels' => [
    // ...
    'larabug' => [
        'driver' => 'larabug',
    ],
],
```

After that you have configured the LaraBug channel you can add it to the stack section:

```
'channels' => [
    'stack' => [
        'driver' => 'stack',
        'channels' => ['single', 'larabug'],
    ],
    //...
],
```

PS: If you are using lumen, maybe you doesn't have the `logging.php` file. So, you can use default logging file from framework core and make changes above.

```
php -r "file_exists('config/') || mkdir('config/'); copy('vendor/laravel/lumen-framework/config/logging.php', 'config/logging.php');"
```

License
-------

[](#license)

The larabug package is open source software licensed under the [license MIT](http://opensource.org/licenses/MIT)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 62% 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 ~62 days

Recently: every ~40 days

Total

30

Last Release

1669d ago

Major Versions

1.4.2 → 2.02020-02-18

PHP version history (4 changes)1.0PHP &gt;=7.0.0

1.0.3PHP &gt;=5.6.0

1.3.1PHP &gt;=7.1.3

2.4.3PHP ^7.2.5|^8.0

### Community

Maintainers

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

---

Top Contributors

[![Cannonb4ll](https://avatars.githubusercontent.com/u/3110750?v=4)](https://github.com/Cannonb4ll "Cannonb4ll (114 commits)")[![nickurt](https://avatars.githubusercontent.com/u/5840084?v=4)](https://github.com/nickurt "nickurt (23 commits)")[![xHeinrich](https://avatars.githubusercontent.com/u/7674587?v=4)](https://github.com/xHeinrich "xHeinrich (13 commits)")[![SebastiaanKloos](https://avatars.githubusercontent.com/u/6506510?v=4)](https://github.com/SebastiaanKloos "SebastiaanKloos (8 commits)")[![cbl](https://avatars.githubusercontent.com/u/29352871?v=4)](https://github.com/cbl "cbl (7 commits)")[![Glennmen](https://avatars.githubusercontent.com/u/11406433?v=4)](https://github.com/Glennmen "Glennmen (5 commits)")[![mateussantana](https://avatars.githubusercontent.com/u/3890594?v=4)](https://github.com/mateussantana "mateussantana (4 commits)")[![mikemand](https://avatars.githubusercontent.com/u/745184?v=4)](https://github.com/mikemand "mikemand (2 commits)")[![Larsklopstra](https://avatars.githubusercontent.com/u/25669876?v=4)](https://github.com/Larsklopstra "Larsklopstra (2 commits)")[![paulhennell](https://avatars.githubusercontent.com/u/4799852?v=4)](https://github.com/paulhennell "paulhennell (1 commits)")[![sinnbeck](https://avatars.githubusercontent.com/u/13980140?v=4)](https://github.com/sinnbeck "sinnbeck (1 commits)")[![Taronyuu](https://avatars.githubusercontent.com/u/7033142?v=4)](https://github.com/Taronyuu "Taronyuu (1 commits)")[![jrmajor](https://avatars.githubusercontent.com/u/26096713?v=4)](https://github.com/jrmajor "jrmajor (1 commits)")[![Melcus](https://avatars.githubusercontent.com/u/6652134?v=4)](https://github.com/Melcus "Melcus (1 commits)")[![grantholle](https://avatars.githubusercontent.com/u/1189456?v=4)](https://github.com/grantholle "grantholle (1 commits)")

---

Tags

loglaravelerror

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/hajmo-larabug/health.svg)

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

###  Alternatives

[larabug/larabug

Laravel 6.x/7.x/8.x/9.x/10.x/11.x/12.x/13.x bug notifier

299549.3k1](/packages/larabug-larabug)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14642.7k1](/packages/guanguans-laravel-exception-notify)[yaro/log-envelope

Laravel 5 email on error

4147.0k](/packages/yaro-log-envelope)[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)
