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)1731.2k[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 1mo 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 82% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

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

1541d 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.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[ekino/newrelic-bundle

Integrate New Relic into Symfony2

28111.2M8](/packages/ekino-newrelic-bundle)

PHPackages © 2026

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