PHPackages                             chrishenrique/laravel-requests-monitor - 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. chrishenrique/laravel-requests-monitor

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

chrishenrique/laravel-requests-monitor
======================================

Centraliza requisições de apps Laravel em um DB unificado via job e middleware.

v1.2.1(1mo ago)140MITPHPPHP ^7.4|^8.0

Since Jan 26Pushed 1mo agoCompare

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

READMEChangelog (1)Dependencies (9)Versions (5)Used By (0)

Laravel Requests Monitor
========================

[](#laravel-requests-monitor)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d6e916f646de4524080311f2cc245c90d5f751a58f91fe72993e5e8f465975a3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636872697368656e72697175652f6c61726176656c2d72657175657374732d6d6f6e69746f722e737667)](https://packagist.org/packages/chrishenrique/laravel-requests-monitor)[![Total Downloads](https://camo.githubusercontent.com/fc3acfb332bc5f6f7158536533695731041c18d9bdcc5a8ff03e250e002411d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636872697368656e72697175652f6c61726176656c2d72657175657374732d6d6f6e69746f722e737667)](https://packagist.org/packages/chrishenrique/laravel-requests-monitor)[![License](https://camo.githubusercontent.com/d564bfe220735d3f474c982d5771a3a95a2aea721656873bbcf8326b4de2dde5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636872697368656e72697175652f6c61726176656c2d72657175657374732d6d6f6e69746f722e737667)](LICENSE)

A lightweight Laravel package to monitor, log, and analyze HTTP requests and custom application actions.
Designed to be simple, extensible, and database-agnostic, it works seamlessly with legacy Laravel versions (7.x) and modern PHP versions.

---

Features
--------

[](#features)

- Automatic request monitoring via middleware
- Manual action registration for business events
- Dedicated database connection support
- Configurable retention and pruning
- Compatible with PHP 7.4 and PHP ^8.0
- Ideal for auditing, analytics, and security tracking

---

Requirements
------------

[](#requirements)

- PHP **7.4** or **^8.0**
- Laravel **7.x** or higher
- Any database supported by Laravel

---

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

[](#installation)

Install the package via Composer:

```
composer require chrishenrique/laravel-requests-monitor
```

---

Configuration
-------------

[](#configuration)

### Publish Config File

[](#publish-config-file)

```
php artisan vendor:publish --tag=requests-monitor-config
```

The config file will be available at:

```
config/requests-monitor.php

```

---

Database Setup
--------------

[](#database-setup)

It is recommended to use a dedicated database or schema.

Create a database and configure a new connection named **`requests-monitor`** in `config/database.php`:

```
'connections' => [

    'requests-monitor' => [
        'driver' => 'mysql',
        'host' => env('DB_MONITOR_HOST', '127.0.0.1'),
        'port' => env('DB_MONITOR_PORT', '3306'),
        'database' => env('DB_MONITOR_DATABASE', 'requests_monitor'),
        'username' => env('DB_MONITOR_USERNAME', 'root'),
        'password' => env('DB_MONITOR_PASSWORD', ''),
        'charset' => 'utf8mb4',
        'collation' => 'utf8mb4_unicode_ci',
    ],

],
```

---

Migrations
----------

[](#migrations)

Publish the migrations:

```
php artisan vendor:publish --tag=requests-monitor-migrations
```

Run them:

```
php artisan migrate
```

---

Middleware Registration
-----------------------

[](#middleware-registration)

### PHP ^8.0 (Laravel 9+)

[](#php-80-laravel-9)

```
use ChrisHenrique\RequestsMonitor\Middlewares\RequestMonitorMiddleware;

$middleware->appendToGroup('web', [
    RequestMonitorMiddleware::class,
]);
```

### PHP 7.4 (Laravel 7 / 8)

[](#php-74-laravel-7--8)

In `app/Http/Kernel.php`:

```
protected $middlewareGroups = [
    'web' => [
        \ChrisHenrique\RequestsMonitor\Middlewares\RequestMonitorMiddleware::class,
    ],
];
```

---

Pruning Old Records (PHP 7.4)
-----------------------------

[](#pruning-old-records-php-74)

Register the prune command in `app/Console/Kernel.php`:

```
protected function schedule(Schedule $schedule)
{
    $schedule->command('requests-monitor:prune')->daily();
}
```

You may also run it manually:

```
php artisan requests-monitor:prune
```

---

Manual Action Registration
--------------------------

[](#manual-action-registration)

You can manually register application-specific actions:

```
registerAction('billet.download', session('customer'));
```

This is useful for tracking business logic events that are not directly related to HTTP requests.

---

Typical Use Cases
-----------------

[](#typical-use-cases)

- HTTP request auditing
- API usage monitoring
- Business event tracking
- Security and access logs
- Performance and behavior analysis

---

Roadmap
-------

[](#roadmap)

- Dashboard UI
- Filters and advanced querying
- Export and reporting tools

---

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

[](#contributing)

Contributions are welcome!
Please open an issue or submit a pull request.

---

License
-------

[](#license)

The MIT License (MIT). Please see the [LICENSE](LICENSE) file for more information.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance90

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

Total

4

Last Release

48d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8f5b9b3f14f076efdba2a99ffed8e30fc26c028dd2094b6f81505ad0a150ad03?d=identicon)[chrishenrique16](/maintainers/chrishenrique16)

---

Top Contributors

[![chrishenrique](https://avatars.githubusercontent.com/u/15872036?v=4)](https://github.com/chrishenrique "chrishenrique (22 commits)")

---

Tags

laravelloggingqueuemonitorrequests

### Embed Badge

![Health badge](/badges/chrishenrique-laravel-requests-monitor/health.svg)

```
[![Health](https://phpackages.com/badges/chrishenrique-laravel-requests-monitor/health.svg)](https://phpackages.com/packages/chrishenrique-laravel-requests-monitor)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

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

PHPackages © 2026

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