PHPackages                             samuelerwardi/lumeninterceptor - 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. samuelerwardi/lumeninterceptor

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

samuelerwardi/lumeninterceptor
==============================

This library for write log using intercept request and response middleware

1.0.6(4y ago)03.0kPHPPHP ^7.2

Since Apr 11Pushed 4y agoCompare

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

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

Lumen Interceptor
=================

[](#lumen-interceptor)

This library for write log using intercept request and response middleware

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

[](#installation)

Use \[Composer\] to install the package:

```
$ composer require yannice92/lumeninterceptor

```

Note
----

[](#note)

Make sure if you using php-fpm, add `log_limit = 100000` on your php-fpm pool, to prevent multiline output on stdout

Usage
-----

[](#usage)

1. Change extended class in app/Exceptions/Handler.php from `Laravel\Lumen\Exceptions\Handler as ExceptionHandler` with `use Yannice92\LumenInterceptor\Exceptions\BaseHandler;`so it should be `class Handler extends BaseHandler`
2. Add `Yannice92\LumenInterceptor\Http\Middleware\LogRequestResponseMiddleware::class` in global middleware on bootstrap/app.php ```
    $app->middleware([
         Yannice92\LumenInterceptor\Http\Middleware\LogRequestResponseMiddleware::class,
         ...
     ]);
    ```
3. Add `X-Request-ID` header for correlation Id
4. Add config/logging.php `'stdout' => [ 'driver' => 'monolog', 'level' => 'info', 'handler' => StreamHandler::class, 'with' => [ 'stream' => 'php://stdout', ], 'formatter' => \Yannice92\LumenInterceptor\Logging\JsonFormatter::class, ],`

Authors
-------

[](#authors)

- [Fernando Yannice](https://github.com/yannice92)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~36 days

Recently: every ~13 days

Total

20

Last Release

1528d ago

Major Versions

0.1.9 → 1.0.02020-10-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/7fe4794e8973212f484978ac5a960cc83dbe0ca3c21a5f3ce67c595c54bf6771?d=identicon)[samuelerwardi](/maintainers/samuelerwardi)

---

Top Contributors

[![yannice92](https://avatars.githubusercontent.com/u/6814117?v=4)](https://github.com/yannice92 "yannice92 (17 commits)")

### Embed Badge

![Health badge](/badges/samuelerwardi-lumeninterceptor/health.svg)

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[spatie/laravel-health

Monitor the health of a Laravel application

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

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[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)[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)[concrete5/core

Concrete core subtree split

19159.3k48](/packages/concrete5-core)

PHPackages © 2026

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