PHPackages                             benq/laravel\_http\_logger - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. benq/laravel\_http\_logger

ActiveLibrary[HTTP &amp; Networking](/categories/http)

benq/laravel\_http\_logger
==========================

Laravel HTTP logging library

1.0.1(4y ago)2986MITPHPPHP ^7.1

Since Feb 4Pushed 4y ago2 watchersCompare

[ Source](https://github.com/benqcloud/laravel_http_logger)[ Packagist](https://packagist.org/packages/benq/laravel_http_logger)[ RSS](/packages/benq-laravel-http-logger/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (3)Used By (0)

Log HTTP requests and headers
=============================

[](#log-http-requests-and-headers)

This package provides a middleware to log incoming http requests data (body data and headers).

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

[](#installation)

You can install the package via composer:

```
composer require benq/laravel_http_logger
```

Optionally you can publish the config file with:

```
php artisan vendor:publish --provider="Benq\Logger\Providers\LoggerServiceProvider"
```

This is the contents of the published config file:

```
return [
    /*
     * false - don't log body fields
     * ['only'] - log fields only
     * ['except'] - don't log fields
     *
     * If ['only'] is set, ['except'] parameter will be omitted
     */
    // 'content' => false,
    'content' => [
        'only' => [],
        'except' => ['password'],
    ],

    /*
     * false - don't log headers
     * ['only'] - log headers only
     * ['except'] - don't log headers
     *
     * If ['only'] is set, ['except'] parameter will be omitted
     */
    // 'headers' => false,
    'headers' => [
        'only' => [],
        'except' => [],
    ],

    /*
     * false - don't log response
     * ['only'] - log response only
     * ['except'] - don't log response
     *
     * If ['only'] is set, ['except'] parameter will be omitted
     */
    // 'response' => false,
    'response' => [
        'only' => [],
        'except' => [],
    ],

    /*
     * false - don't limit response
     * limit - response message limit
     *
     */
    // 'response-limit' => false,
    'response-limit' => 10000
];
```

Formatter
---------

[](#formatter)

If project have to use custom formatter, you can use Benq\\Logger\\Formatter\\JsonFormatter via config/loggin.php

```
return [
    'channels' => [
        'stack' => [
            'driver' => 'stack',
            'channels' => ['single'],
            'ignore_exceptions' => false,
        ],

        'single' => [
            'driver' => 'single',
            'path' => storage_path('logs/laravel.log'),
            'level' => 'debug',
        ],

        'stdout' => [
            'driver' => 'monolog',
            'handler' => StreamHandler::class,
            'with' => [
                'stream' => 'php://stdout',
            ],
            'formatter' => Benq\Logger\Formatter\JsonFormatter,
            'formatter_with' => [
                'setMaxNormalizeDepth' => 2
            ],
            'level' => 'debug',
        ],
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

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

Total

2

Last Release

1772d ago

### Community

Maintainers

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

---

Top Contributors

[![benq-richard-cw-ting](https://avatars.githubusercontent.com/u/84307045?v=4)](https://github.com/benq-richard-cw-ting "benq-richard-cw-ting (1 commits)")[![benq-tomato-f-chou](https://avatars.githubusercontent.com/u/171222987?v=4)](https://github.com/benq-tomato-f-chou "benq-tomato-f-chou (1 commits)")

---

Tags

httplogjsonlaravel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/benq-laravel-http-logger/health.svg)

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

###  Alternatives

[vinelab/http

An http library developed for the laravel framework. aliases itself as HttpClient

59300.2k11](/packages/vinelab-http)[hannesvdvreken/guzzle-debugbar

A Guzzle middleware that logs requests to debugbar's timeline

76410.4k1](/packages/hannesvdvreken-guzzle-debugbar)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

319.8k3](/packages/dragon-code-laravel-http-logger)[laragear/json

Easily retrieve and manipulate `Json` across your application.

363.5k](/packages/laragear-json)[rap2hpoutre/jacky

Opinionated REST JSON HTTP API client for laravel

174.4k](/packages/rap2hpoutre-jacky)[laravel-shift/curl-converter

A command line tool to convert curl requests to Laravel HTTP requests.

935.3k](/packages/laravel-shift-curl-converter)

PHPackages © 2026

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