PHPackages                             samfelgar/log-requests - 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. samfelgar/log-requests

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

samfelgar/log-requests
======================

v2.1(10mo ago)03.8k↓50%MITPHPPHP ^7.4 || ^8.0

Since Nov 23Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/samfelgar/log-requests)[ Packagist](https://packagist.org/packages/samfelgar/log-requests)[ RSS](/packages/samfelgar-log-requests/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

Log requests
============

[](#log-requests)

This package provides a simple request logger to be used with Laravel applications.

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

[](#installation)

You can install this package via composer:

```
composer require samfelgar/log-requests
```

By default, the logging channel used is the `stack`, but you can change this by publishing the config file:

```
php artisan vendor:publish --provider=Samfelgar\\LogRequests\\Providers\\LogRequestServiceProvider
```

After running the command above, the file `log-requests.php` will be created in the config path.

Usage
-----

[](#usage)

This package registers a middleware alias that can be used in your routes files:

```
use Illuminate\Support\Facades\Route;

Route::middleware(['log-requests'])->group(function () {
    // Your logged routes goes here.
});
```

You may also register the middleware within a group or globally by editing the `\App\Http\Kernel` class:

- In groups

```
protected $middlewareGroups = [
    'web' => [
        // Other middleware
        \Samfelgar\LogRequests\Http\Middleware\LogRequest::class,
    ],

    'api' => [
        'throttle:api',
        'bindings',
        \Samfelgar\LogRequests\Http\Middleware\LogRequest::class,
    ],
];
```

- Globally

```
protected $middleware = [
    // Other middleware
    \Samfelgar\LogRequests\Http\Middleware\LogRequest::class,
];
```

> For more information about middlewares in Laravel, check the [documentation](https://laravel.com/docs/middleware#registering-middleware).

Contributing
------------

[](#contributing)

Found an error? Open an issue!

Any contribution is appreciated, just submit a pull request.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance55

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Total

3

Last Release

300d ago

Major Versions

v1.0 → v2.02022-06-28

PHP version history (2 changes)v1.0PHP ^7.4|^8.0

v2.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/21963503?v=4)[Samuel Felipe](/maintainers/samfelgar)[@samfelgar](https://github.com/samfelgar)

---

Top Contributors

[![samfelgar](https://avatars.githubusercontent.com/u/21963503?v=4)](https://github.com/samfelgar "samfelgar (8 commits)")

---

Tags

hacktoberfest

### Embed Badge

![Health badge](/badges/samfelgar-log-requests/health.svg)

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

###  Alternatives

[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

74310.9M66](/packages/laravel-mcp)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[galahad/laravel-addressing

Laravel package providing addressing functionality

70316.6k](/packages/galahad-laravel-addressing)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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