PHPackages                             bwt-team/laravel-request-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. bwt-team/laravel-request-logger

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

bwt-team/laravel-request-logger
===============================

A Laravel 5 package to log HTTP requests

v1.0.5(3y ago)25.6k↓66.7%[1 PRs](https://github.com/groupbwt/laravel-request-logger/pulls)MITPHPPHP ^8.0.2

Since Jun 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/groupbwt/laravel-request-logger)[ Packagist](https://packagist.org/packages/bwt-team/laravel-request-logger)[ RSS](/packages/bwt-team-laravel-request-logger/feed)WikiDiscussions master Synced 1mo ago

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

English description | [Russian description](README_RU.md)

Laravel 5 Request Logger
========================

[](#laravel-5-request-logger)

[![Latest Stable Version](https://camo.githubusercontent.com/0ca02337de863a885ad9219d1d59d88f1983ea008d370d0d6f84f218bbbb2d2a/68747470733a2f2f706f7365722e707567782e6f72672f6277742d7465616d2f6c61726176656c2d726571756573742d6c6f676765722f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/bwt-team/laravel-request-logger)[![Latest Unstable Version](https://camo.githubusercontent.com/ca2d758dfe201576f3db01df2ef2c5e636653ccb67cb7d09ccf39235bb1839f2/68747470733a2f2f706f7365722e707567782e6f72672f6277742d7465616d2f6c61726176656c2d726571756573742d6c6f676765722f762f756e737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/bwt-team/laravel-request-logger#dev-develop)[![License](https://camo.githubusercontent.com/8c9cc2a1fad917e14a3cdcc59326f794728124f2f384d5bcfcbb0af974dcdfc7/68747470733a2f2f706f7365722e707567782e6f72672f6277742d7465616d2f6c61726176656c2d726571756573742d6c6f676765722f6c6963656e73653f666f726d61743d666c61742d737175617265)](LICENSE.md)

This package provides quick and easy setup for the requests logging.

#### This package requires Laravel 5.6+

[](#this-package-requires-laravel-56)

### Contents

[](#contents)

- [Installation](#installation)
- [Set up](#set-up)
- [License](#license)

### Installation

[](#installation)

This package can be installed via composer with this command:

```
composer require bwt-team/laravel-request-logger
```

### Set up

[](#set-up)

Laravel 5.6+ uses package auto-discovery, so there's no need to register the service provider manually. If auto-discovery is disabled the service provider can be registered by adding these records into `providers` array in `config/app.php` file:

```
BwtTeam\LaravelRequestLogger\Providers\RequestLoggerServiceProvider::class
```

This service provider will register the middleware that calls the logging itself and will allow configuring all the settings required for the package installation. To use a facade add this record to the `aliases` array:

```
'RequestLogger' => \BwtTeam\LaravelRequestLogger\Facades\RequestLogger::class,
```

#### IMPORTANT! By default, logging is disabled in the settings. This allows to configure the package after the installation and enable the logging once everything is ready. To activate the logging use an environment variable "RL\_ENABLE". Alternatively, once the config file has been published, it is possible to describe a function that will activate the logging only for the requests of interest.

[](#important-by-default-logging-is-disabled-in-the-settings-this-allows-to-configure-the-package-after-the-installation-and-enable-the-logging-once-everything-is-ready-to-activate-the-logging-use-an-environment-variable-rl_enable-alternatively-once-the-config-file-has-been-published-it-is-possible-to-describe-a-function-that-will-activate-the-logging-only-for-the-requests-of-interest)

Here's an example of the function that describes the logging conditions:

```
'enabled' => function(\Illuminate\Http\Request $request) {
    return $request->isMethod('GET');
},
```

In order to publish the config file execute next command:

```
php artisan vendor:publish --provider="BwtTeam\LaravelRequestLogger\Providers\RequestLoggerServiceProvider" --tag=config
```

Next options are available in the settings:

- enable/disable logging;
- titles of the fields that should be excluded from the logs (for example, "password");
- options for type casting and logs optimization;
- logs storage settings.

The default log storage is "database". For this storage to work correctly it is necessary to execute a migration to create a table for logs. In order to publish this migration execute this command:

```
php artisan request-logger:table
```

It is possible to write custom data. To do this, the data should be passed to "put" method of "BwtTeam\\LaravelRequestLogger\\RequestLoggerRepository" class. For example:

```
app(\BwtTeam\LaravelRequestLogger\RepositoryInterface::class)->put('test', ['some', 'data']);
```

Alternatively, a facade could be used:

```
\RequestLogger::put('test', ['some', 'data']);
```

### License

[](#license)

This package uses [MIT](LICENSE.md).

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity73

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

Recently: every ~249 days

Total

6

Last Release

1276d ago

PHP version history (2 changes)v1.0.0PHP ^7.1.3

v1.0.5PHP ^8.0.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/d8706e19b2613bd9a54b4e7bab80e6e3f719ea68002db68ebaba6e1eaf93d1e0?d=identicon)[BWT group](/maintainers/BWT%20group)

---

Top Contributors

[![chesanovskyidv](https://avatars.githubusercontent.com/u/9423052?v=4)](https://github.com/chesanovskyidv "chesanovskyidv (9 commits)")

---

Tags

laravellogginglogslogger

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bwt-team-laravel-request-logger/health.svg)

```
[![Health](https://phpackages.com/badges/bwt-team-laravel-request-logger/health.svg)](https://phpackages.com/packages/bwt-team-laravel-request-logger)
```

PHPackages © 2026

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