PHPackages                             patrickriemer/http-log - 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. patrickriemer/http-log

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

patrickriemer/http-log
======================

HTTP request and response logging to database

2.0.7(3y ago)44.8k1Apache-2.0PHPPHP &gt;=8.1

Since Jan 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/patrickriemer/http-log)[ Packagist](https://packagist.org/packages/patrickriemer/http-log)[ RSS](/packages/patrickriemer-http-log/feed)WikiDiscussions main Synced today

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

HTTP log
========

[](#http-log)

Offers a middleware to automatically log HTTP requests and responses for API endpoints. A model allows manually logging as well. All data will be logged into the database table "http\_logs". The following information will be captured:

- Unique request ID (UUID 4)
- Request method
- Request path
- Request URI
- Request header
- Request IP
- Request input (JSON)
- Response status code
- Response header
- Response content (JSON)
- Turnaround time in milliseconds (based on PHP's hrtime, rounded up to the next millisecond)

To enable the request logging for all API requests, add it to the api middleware group in the App\\Http\\Kernel.php:

```
use PatrickRiemer\HttpLog\Http\Middleware\LogRequestResponse;

protected $middlewareGroups = [
    'api' => [
        LogRequestResponse::class,
    ],
];

```

The logging is deactivated per default since version 1.1.0. You can enable it in your .env file with the following snippet:

```
HTTP_LOG_ENABLED=true
```

The middleware will log the request IP. If you are sitting behind Cloudflare or a similar service that forwards the real IP address, you can specify the header attribute in the environment file that should be used for logging. Example for Cloudflare:

```
HEADER_REAL_IP=x-real-ip
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

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

Recently: every ~29 days

Total

12

Last Release

1149d ago

Major Versions

1.1.5 → 2.0.62023-05-11

PHP version history (2 changes)1.0.2PHP &gt;=8.2

1.0.3PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32695238?v=4)[Patrick Riemer](/maintainers/patrickriemer)[@patrickriemer](https://github.com/patrickriemer)

---

Top Contributors

[![patrickriemer](https://avatars.githubusercontent.com/u/32695238?v=4)](https://github.com/patrickriemer "patrickriemer (26 commits)")[![hashs42](https://avatars.githubusercontent.com/u/93109711?v=4)](https://github.com/hashs42 "hashs42 (1 commits)")

---

Tags

httploggingmiddleware

### Embed Badge

![Health badge](/badges/patrickriemer-http-log/health.svg)

```
[![Health](https://phpackages.com/badges/patrickriemer-http-log/health.svg)](https://phpackages.com/packages/patrickriemer-http-log)
```

###  Alternatives

[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.7M222](/packages/backpack-crud)[ronasit/laravel-entity-generator

Provided console command for generating entities.

2053.1k](/packages/ronasit-laravel-entity-generator)[dcat-plus/laravel-admin

dcat-plus admin

1474.0k10](/packages/dcat-plus-laravel-admin)[ronasit/laravel-helpers

Provided helpers function and some helper class.

2085.6k31](/packages/ronasit-laravel-helpers)[nightowl/agent

NightOwl monitoring agent — collects telemetry from laravel/nightwatch and writes to PostgreSQL

771.7k](/packages/nightowl-agent)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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