PHPackages                             holidaypirates/bugsnag-lumen - 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. holidaypirates/bugsnag-lumen

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

holidaypirates/bugsnag-lumen
============================

Bugsnag notifier for Lumen applications.

2.0.0(9y ago)71.2k[1 issues](https://github.com/holidaypirates/bugsnag-lumen/issues)MITPHPPHP &gt;=5.3.0

Since May 10Pushed 9y ago3 watchersCompare

[ Source](https://github.com/holidaypirates/bugsnag-lumen)[ Packagist](https://packagist.org/packages/holidaypirates/bugsnag-lumen)[ Docs](https://github.com/holidaypirates/bugsnag-lumen)[ RSS](/packages/holidaypirates-bugsnag-lumen/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

Bugsnag Notifier for Lumen
==========================

[](#bugsnag-notifier-for-lumen)

The Bugsnag Notifier for Lumen gives you instant notification of errors and exceptions in your Lumen PHP applications. (based on package for Laravel )

[Bugsnag](https://bugsnag.com) captures errors in real-time from your web, mobile and desktop applications, helping you to understand and resolve them as fast as possible. [Create a free account](https://bugsnag.com) to start capturing errors from your applications.

How to Install
--------------

[](#how-to-install)

1. Install the `holidaypirates/bugsnag-lumen` package

    ```
    $ composer require "holidaypirates/bugsnag-lumen:1.*"
    ```
2. Update `bootstrap/app.php` to activate Bugsnag

    ```
    # Copy config/bugsnag.php from package to project config, change vaules and register config file in `bootstrap/app.php`
    $app->configure('bugsnag');
    ```

    ```
    # Add `BugsnagLumenServiceProvider` to the `bootstrap/app.php`
    $app->register('HolidayPirates\BugsnagLumen\BugsnagLumenServiceProvider')
    ```
3. Use the Bugsnag exception handler from `App/Exceptions/Handler.php`.

    ```
    # DELETE this line
    use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
    ```

    ```
    # ADD this line instead
    use HolidayPirates\BugsnagLumen\BugsnagExceptionHandler as ExceptionHandler
    ```

    After this change, your file should look like this:

    ```
