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

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

understand/understand-lumen
===========================

Understand.io Laravel Lumen service provider.

v1.0.1(10y ago)66662MITPHPPHP &gt;=5.4.0

Since Nov 2Pushed 8y ago3 watchersCompare

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

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

The service provider is deprecated - it does not support error grouping.
------------------------------------------------------------------------

[](#the-service-provider-is-deprecated---it-does-not-support-error-grouping)

---

Laravel Lumen service provider for Understand.io
------------------------------------------------

[](#laravel-lumen-service-provider-for-understandio)

[![Build Status](https://camo.githubusercontent.com/01198e815d8d5f390ab5884f4507600cfb07595f4af263ac22458efb1b2a24c6/68747470733a2f2f7472617669732d63692e6f72672f756e6465727374616e642f756e6465727374616e642d6c756d656e2e737667)](https://travis-ci.org/understand/understand-lumen)[![Latest Stable Version](https://camo.githubusercontent.com/2b107bbd6141cd3fa65549ba7f22455eaa8d75900c613d41cc53b52ed1d57c16/68747470733a2f2f706f7365722e707567782e6f72672f756e6465727374616e642f756e6465727374616e642d6c756d656e2f762f737461626c652e737667)](https://packagist.org/packages/understand/understand-lumen)[![Latest Unstable Version](https://camo.githubusercontent.com/d8b33c2f3770679ea63dcb2f87df90f159077b000f053dd75110f6cc3dd3525d/68747470733a2f2f706f7365722e707567782e6f72672f756e6465727374616e642f756e6465727374616e642d6c756d656e2f762f756e737461626c652e737667)](https://packagist.org/packages/understand/understand-lumen)[![License](https://camo.githubusercontent.com/a408788f8b72035ad7b587d9f823a6bfc6a15ddc35313d5926da252a4ef14043/68747470733a2f2f706f7365722e707567782e6f72672f756e6465727374616e642f756e6465727374616e642d6c756d656e2f6c6963656e73652e737667)](https://packagist.org/packages/understand/understand-lumen)[![HHVM Status](https://camo.githubusercontent.com/a1e3293e6991e275837bdc42d56a6753681d55d73833c33f08e23f145a65baa8/687474703a2f2f6868766d2e683463632e64652f62616467652f756e6465727374616e642f756e6465727374616e642d6c756d656e2e737667)](http://hhvm.h4cc.de/package/understand/understand-lumen)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b4faf1d22c9a128aec344c8700c2ad535e3f466dc18a294da6f5fd1474e62a29/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f756e6465727374616e642f756e6465727374616e642d6c756d656e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/understand/understand-lumen/?branch=master)

> You may also be interested in our [Laravel 4](https://github.com/understand/understand-laravel), [Laravel 5 service provider](https://github.com/understand/understand-laravel5) or [Monolog Understand.io handler](https://github.com/understand/understand-monolog)

### Introduction

[](#introduction)

This packages provides a full abstraction for Understand.io and provides extra features to improve Lumen's default logging capabilities. It is essentially a wrapper around our [Understand Monolog handler](https://github.com/understand/understand-monolog) to take full advantage of Understand.io's data aggregation and analysis capabilities.

### Quick start

[](#quick-start)

1. Add this package to your project via composer:

    ```
    composer require understand/understand-lumen

    ```
2. In `bootstrap/app.php` enable `Dotenv` (around line 5) AND `$app->withFacades();` (around line 22):

    ```
    Dotenv::load(__DIR__.'/../'); // around line 5

    ...

    $app->withFacades(); // around line 22
    ```
3. In `bootstrap/app.php` register the UnderstandLumenServiceProvider:

    ```
    $app->register(Understand\UnderstandLumen\UnderstandLumenServiceProvider::class);
    ```
4. Create a new file as `config/understand_lumen.php` (note that you may need to create the `config` directory) with the following contents:

    ```
