PHPackages                             alimranahmed/hit-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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. alimranahmed/hit-logger

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

alimranahmed/hit-logger
=======================

Laravel request and response logger. Highly encouraged from spatie/laravel-http-logger

1.0.5(4y ago)1732.0k[1 issues](https://github.com/alimranahmed/hit-logger/issues)MITPHPPHP ^7.1|^8.0.2

Since May 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/alimranahmed/hit-logger)[ Packagist](https://packagist.org/packages/alimranahmed/hit-logger)[ RSS](/packages/alimranahmed-hit-logger/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)DependenciesVersions (7)Used By (0)

Hit-Logger(Log Http Request and Response)
-----------------------------------------

[](#hit-loggerlog-http-request-and-response)

A Laravel 5 package for logging http request and response. Usually we find ourself in a situation that our testing team or an API user is claming that they had sent a request and got an unexpected response. This package gives us the opportunity to look back what really was the request to our laravel application and what was actual the response from our application. This makes our life lot easir.

This pakcage provides a `Middleware` that can be used wherever you need(e.g. all the request and response, only a single route's requests and responses, only API requests and responses, only web requests and responses etc).

Built this package being highly inspired by [spatie/laravel-http-logger](https://github.com/spatie/laravel-http-logger) which is a nice package to log only the requests.

### Installation:

[](#installation)

Run the following command in your terminal while you are in the root directory of your project:

```
composer require alimranahmed/hit-logger

```

If you want to change the default behavour of the package you can publish and change the config file. Run the following command to publish the config file:

```
php artisan vendor:publish --provider="AlImranAhmed\HitLogger\HitLoggerServiceProvider" --tag="config"

```

### Usage

[](#usage)

This package has a middleware that can be used to log request and response. Register the middleware in your `app/Http/Karnel.php` file as below:

```
protected $middleware = [
    // ...

    \AlImranAhmed\HitLogger\Middlewares\HitLogger::class,
];
```

### License

[](#license)

The MIT License (MIT)

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity69

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 ~202 days

Recently: every ~157 days

Total

6

Last Release

1588d ago

PHP version history (2 changes)1.0.0PHP ^7.1

1.0.5PHP ^7.1|^8.0.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/b8c3fefb2074087ffdd55e9ebc7186a690d78ff1c23d059e6ccf68303eda0ad2?d=identicon)[al\_imran](/maintainers/al_imran)

---

Top Contributors

[![alimranahmed](https://avatars.githubusercontent.com/u/7629427?v=4)](https://github.com/alimranahmed "alimranahmed (14 commits)")

---

Tags

http-loggerlaravellaravel-packagelaravel5loggerrequest-loggerresponse-logger

### Embed Badge

![Health badge](/badges/alimranahmed-hit-logger/health.svg)

```
[![Health](https://phpackages.com/badges/alimranahmed-hit-logger/health.svg)](https://phpackages.com/packages/alimranahmed-hit-logger)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.6k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M277](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M344](/packages/open-telemetry-sdk)

PHPackages © 2026

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