PHPackages                             farzai/laravel-http-recorder - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. farzai/laravel-http-recorder

ActiveLibrary[HTTP &amp; Networking](/categories/http)

farzai/laravel-http-recorder
============================

A simple HTTP recorder for Laravel

1.0.1(3y ago)012[2 PRs](https://github.com/farzai/laravel-http-recorder/pulls)MITPHPPHP ^8.1

Since May 1Pushed 2y agoCompare

[ Source](https://github.com/farzai/laravel-http-recorder)[ Packagist](https://packagist.org/packages/farzai/laravel-http-recorder)[ Docs](https://github.com/farzai/laravel-http-recorder)[ RSS](/packages/farzai-laravel-http-recorder/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (13)Versions (5)Used By (0)

Laravel HTTP Recorder
=====================

[](#laravel-http-recorder)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a26fed70ba73e41410adfc6534a24e4711d9d6be690c0ffc12a4a8df29619e63/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6661727a61692f6c61726176656c2d687474702d7265636f726465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/farzai/laravel-http-recorder)[![GitHub Tests Action Status](https://camo.githubusercontent.com/35b6f3118decd55e557bec6138c212c461992e48842a71309d58b21219e8d8d1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6661727a61692f6c61726176656c2d687474702d7265636f726465722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/farzai/laravel-http-recorder/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/4aed99288a2ceeafb015490c171085881e5f197e3389f3173ad90d279636c9e2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6661727a61692f6c61726176656c2d687474702d7265636f726465722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/farzai/laravel-http-recorder/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/fdff9d44c4059782ee2591d2b7b609ca14d745506b8e8f7bc95ba5746da581d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6661727a61692f6c61726176656c2d687474702d7265636f726465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/farzai/laravel-http-recorder)

This package allows you to log all HTTP requests to your Laravel application.

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

[](#installation)

You can install the package via composer:

```
composer require farzai/laravel-http-recorder
```

### Prepare the database

[](#prepare-the-database)

You need to publish the migration to create the `http_log_requests` table:

```
php artisan vendor:publish --tag="http-recorder-migrations"
```

After that, you need to run migrations:

```
php artisan migrate
```

### Publishing the config file

[](#publishing-the-config-file)

Publishing the config file is optional:

```
php artisan vendor:publish --tag="http-recorder-config"
```

This is the contents of the published config file:

```
return [
    /*
     * Enable or disable the http recorder.
     */
    'enabled' => env('HTTP_RECORDER_ENABLED', true),

    /*
     * The driver used to store the http logs.
     * It should be a class that implements the `Farzai\HttpRecorder\Contracts\EntryRepositoryInterface`.
     *
     * Supported drivers: "database"
     */
    'driver' => env('HTTP_RECORDER_DRIVER', 'database'),

    /**
     * Process the request in the background.
     * (leave it to empty to use default queue)
     */
    'queue' => env('HTTP_RECORDER_QUEUE'),
    // 'queue' => [
    //     'connection' => env('HTTP_RECORDER_QUEUE_CONNECTION'),
    //     'queue' => env('HTTP_RECORDER_QUEUE_NAME'),
    // ]

    /*
     * Exclude routes from being logged.
     */
    'except' => [
        'urls' => [
            'telescope*',
            'horizon*',
            'nova*',
        ],

        'methods' => [
            'HEAD',
        ],
    ],

    /**
     * Drivers
     */
    'drivers' => [
        'database' => [
            'connection' => env('HTTP_RECORDER_CONNECTION'),
            'table' => env('HTTP_RECORDER_DB_TABLE', 'http_log_requests'),
        ],
    ],

    /**
     * Sensitive request headers and response.
     *
     * These fields will be replaced with asterisks (*) in the request headers.
     */
    'sensitive' => [
        'headers' => [
            'authorization',
            'x-csrf-token',
            'x-xsrf-token',
            'set-cookie',
        ],
        'body' => [
            'password',
            'password_confirmation',
            'token',
            'access_token',
        ],
    ],

    /**
     * The maximum length of the request body and response body.
     *
     * If the length of the request body or response body exceeds the maximum length,
     * it will be truncated to the maximum length.
     */
    'size_limit' => 64
];
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [parsilver](https://github.com/parsilver)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.5% 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 ~0 days

Total

2

Last Release

1104d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/53c7b44c6e0e6687d361e849f817ba17ef1815ca7973c6ffe70e7fa4655e02ec?d=identicon)[parsilver](/maintainers/parsilver)

---

Top Contributors

[![parsilver](https://avatars.githubusercontent.com/u/4928451?v=4)](https://github.com/parsilver "parsilver (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")

---

Tags

httplaravelloggerfarzaihttp-loggerrecorderlaravel-http-recorderhttp-recorder

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/farzai-laravel-http-recorder/health.svg)

```
[![Health](https://phpackages.com/badges/farzai-laravel-http-recorder/health.svg)](https://phpackages.com/packages/farzai-laravel-http-recorder)
```

###  Alternatives

[pusher/pusher-http-laravel

\[DEPRECATED\] A Pusher bridge for Laravel

400509.0k3](/packages/pusher-pusher-http-laravel)[sunchayn/nimbus

A Laravel package providing an in-browser API client with automatic schema generation, live validation, and built-in authentication with a touch of Laravel-tailored magic for effortless API testing.

29428.0k](/packages/sunchayn-nimbus)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

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

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[huang-yi/shadowfax

Run Laravel on Swoole.

3521.7k](/packages/huang-yi-shadowfax)

PHPackages © 2026

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