PHPackages                             ahmadwaleed/laravel-blanket - 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. ahmadwaleed/laravel-blanket

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

ahmadwaleed/laravel-blanket
===========================

A blanket which wraps your laravel http client, and provides dashboard to access logs, retry and debug your http requests.

v1.2.0(4y ago)2181.8k17[3 issues](https://github.com/AhmadWaleed/laravel-blanket/issues)[1 PRs](https://github.com/AhmadWaleed/laravel-blanket/pulls)MITPHPPHP 8.0.\*

Since Jun 19Pushed 3y ago3 watchersCompare

[ Source](https://github.com/AhmadWaleed/laravel-blanket)[ Packagist](https://packagist.org/packages/ahmadwaleed/laravel-blanket)[ Docs](https://github.com/ahmadwaleed/blanket)[ GitHub Sponsors](https://github.com/ahmadwaleed)[ RSS](/packages/ahmadwaleed-laravel-blanket/feed)WikiDiscussions main Synced yesterday

READMEChangelog (8)Dependencies (8)Versions (9)Used By (0)

[![Banner](https://camo.githubusercontent.com/f21c6e4417c99ca30b1183e64d4cef2de3a8d17223c4f414e0eb0d8878ef6f67/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c253230426c616e6b65742e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d61686d616477616c6565642532466c61726176656c2d626c616e6b6574267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d412b626c616e6b65742b77686963682b77726170732b796f75722b6c61726176656c2b485454502b636c69656e742b616e642b70726f766964652b6c6f67732e266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)](https://camo.githubusercontent.com/f21c6e4417c99ca30b1183e64d4cef2de3a8d17223c4f414e0eb0d8878ef6f67/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c253230426c616e6b65742e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d61686d616477616c6565642532466c61726176656c2d626c616e6b6574267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d412b626c616e6b65742b77686963682b77726170732b796f75722b6c61726176656c2b485454502b636c69656e742b616e642b70726f766964652b6c6f67732e266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)

Dashboard to view your http client requests in laravel application
------------------------------------------------------------------

[](#dashboard-to-view-your-http-client-requests-in-laravel-application)

[![Packagist License](https://camo.githubusercontent.com/a2171ce4a368ac99f2bb1396a2e0e4c320d4c67c540334bb2535541fb6583512/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f61686d616477616c6565642f6c61726176656c2d626c616e6b65743f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/a2171ce4a368ac99f2bb1396a2e0e4c320d4c67c540334bb2535541fb6583512/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f61686d616477616c6565642f6c61726176656c2d626c616e6b65743f7374796c653d666f722d7468652d6261646765)[![Packagist Version](https://camo.githubusercontent.com/bec56c49f26f19e5b9c62154e0b9b9d1d61dcaf092ac9a189671df430ec08d18/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61686d616477616c6565642f6c61726176656c2d626c616e6b65743f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/bec56c49f26f19e5b9c62154e0b9b9d1d61dcaf092ac9a189671df430ec08d18/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61686d616477616c6565642f6c61726176656c2d626c616e6b65743f7374796c653d666f722d7468652d6261646765)[![GitHub repo size](https://camo.githubusercontent.com/0a1f0281138ac212159bd71f03841c4d475eea74b6e0611790d94e1aa981d01f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f61686d616477616c6565642f6c61726176656c2d626c616e6b65743f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/0a1f0281138ac212159bd71f03841c4d475eea74b6e0611790d94e1aa981d01f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f61686d616477616c6565642f6c61726176656c2d626c616e6b65743f7374796c653d666f722d7468652d6261646765)[![Packagist Downloads](https://camo.githubusercontent.com/f517e33ec96bce0f1c629ca16ad1568128df5bc3e50f0c3fbe9a625282bf4ae2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61686d616477616c6565642f6c61726176656c2d626c616e6b65743f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/f517e33ec96bce0f1c629ca16ad1568128df5bc3e50f0c3fbe9a625282bf4ae2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61686d616477616c6565642f6c61726176656c2d626c616e6b65743f7374796c653d666f722d7468652d6261646765)

Laravel Blanket is a package with wraps laravel http client requests and provide logs for request and response, also give option to retry any request from dashboard and more...

Desclaimer
----------

[](#desclaimer)

This is highly opinionated fun project which provides very simple web interface and log monitoring. If you need advance monitoring tools consider trying [Debugbar](https://github.com/barryvdh/laravel-debugbar), [Sentry](https://sentry.io/) and [Bugsnag](https://www.bugsnag.com/).

Live Demo
---------

[](#live-demo)

Checkout the demo here to find out more options and feature...

Screenshots
-----------

[](#screenshots)

[![screen shot light](https://github.com/ahmadwaleed/laravel-blanket/raw/main/screenshot-light.png?raw=true)](https://github.com/ahmadwaleed/laravel-blanket/blob/main/screenshot-light.png?raw=true)[![screen shot dark](https://github.com/ahmadwaleed/laravel-blanket/raw/main/screenshot-dark.png?raw=true)](https://github.com/ahmadwaleed/laravel-blanket/blob/main/screenshot-dark.png?raw=true)

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

[](#requirements)

- PHP &gt;= 8.0
- Laravel &gt;= 8.45

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

[](#installation)

You can install the package via composer:

```
composer require ahmadwaleed/laravel-blanket
```

The package will automatically register a service provider.

After installing Blanket, publish its assets using the blanket:wrap Artisan command.

```
php artisan blanket:wrap
```

This package comes with a migration to store all outgoing http client requests. You can publish the migration file using:

```
php artisan vendor:publish --provider="Ahmadwaleed\Blanket\BlanketServiceProvider" --tag="blanket-migrations"
```

Run the migrations with:

```
php artisan migrate
```

Optionally you can publish the blanket configuration file:

```
php artisan vendor:publish --provider="Ahmadwaleed\Blanket\BlanketServiceProvider" --tag="blanket-config"
```

This is the contents of the published config file that will be published as `config/blanket.php`

```
return [
/*
    |--------------------------------------------------------------------------
    | Dashboard Enabled
    |--------------------------------------------------------------------------
    |
    | Here you can specify whether to show dashboard or not.
    |
    */

    'enabled' => env('BLANKET_ENABLED', true),

    /*
    |--------------------------------------------------------------------------
    | Hide Sensitive Data
    |--------------------------------------------------------------------------
    |
    | Here you can specify the fields which might contain sensitive data, those
    | fields will hidden when saving logs. You can also specify nested keys in
    | config. Example:
    | 'response' => [
    |   'client.id',
    |   'client.secret',
    | ],
    */
    'hide_sensitive_data' => [
        'headers' => [
            'Authorization',
            'php-auth-pw',
        ],

        'request' => [
            'password',
            'password_confirmation',
        ],

        'response' => []
    ],

    /*
    |--------------------------------------------------------------------------
    | Blanket Path
    |--------------------------------------------------------------------------
    |
    | This is the URI path where Blanket will be accessible from. Feel free
    | to change this path to anything you like.
    |
    */

    'path' => env('BLANKET_PATH', 'blanket'),

    /*
    |--------------------------------------------------------------------------
    | Blanket Route Middleware
    |--------------------------------------------------------------------------
    |
    | These middleware will be assigned to every Blanket route, giving you
    | the chance to add your own middleware to this list or change any of
    | the existing middleware. Or, you can simply stick with this list.
    |
    */

    'middlewares' => [
        // 'web',
        \Ahmadwaleed\Blanket\Http\Middlewares\Authorize::class,
    ],

    /*
    |--------------------------------------------------------------------------
    | Log Response limit
    |--------------------------------------------------------------------------
    |
    | This is maximum limit blanket is allowed to log response content,
    | if response content exceed this limit the response should be purged.
    | The default limit is 64 KB which is max limit, feel free to set lower limit.
    |
    */

    'log_response_limit' => env('BLANKET_RESPONSE_LIMIT', 64),

    /*
    |--------------------------------------------------------------------------
    | Logs Per Page
    |--------------------------------------------------------------------------
    |
    | How many logs should be fetched per page for dashboard, setting this option
    | to a big number may reduce dashboard performance.
    |
    */

    'logs_per_page' => env('BLANKET_LOGS_PER_PAGE', 100),

    /*
    |--------------------------------------------------------------------------
    | Prune Blanket Logs Duration
    |--------------------------------------------------------------------------
    |
    | Duration in which blanket logs will be deleted periodically
    | that are no longer needed. You should schedule the model:prune
    | Artisan command in your application's App\Console\Kernel class.
    | You are free to specify the appropriate interval here at which
    | this command should be run:
    | ```
    | $schedule->command('model:prune', [
    |   '--model' => [Ahmadwaleed\Blanket\Models\Log::class],
    | ])->daily();
    |
    */

    'prune_logs_duration' => env('PRUNE_LOGS_DURATION', now()->subMonth()),
];
```

Credits
-------

[](#credits)

- [AhmadWaleed](https://github.com/ahmadwaleed)
- [All Contributors](https://github.com/AhmadWaleed/laravel-blanket/graphs/contributors)

License
-------

[](#license)

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

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 82.9% 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 ~14 days

Recently: every ~25 days

Total

8

Last Release

1685d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23218299?v=4)[Ahmed waleed](/maintainers/AhmadWaleed)[@AhmadWaleed](https://github.com/AhmadWaleed)

---

Top Contributors

[![AhmadWaleed](https://avatars.githubusercontent.com/u/23218299?v=4)](https://github.com/AhmadWaleed "AhmadWaleed (29 commits)")[![jjjrmy](https://avatars.githubusercontent.com/u/1609800?v=4)](https://github.com/jjjrmy "jjjrmy (2 commits)")[![sbrow](https://avatars.githubusercontent.com/u/6729162?v=4)](https://github.com/sbrow "sbrow (2 commits)")[![mralston](https://avatars.githubusercontent.com/u/248387?v=4)](https://github.com/mralston "mralston (1 commits)")[![vicenterusso](https://avatars.githubusercontent.com/u/80538?v=4)](https://github.com/vicenterusso "vicenterusso (1 commits)")

---

Tags

laravelAhmadWaleedblanket

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ahmadwaleed-laravel-blanket/health.svg)

```
[![Health](https://phpackages.com/badges/ahmadwaleed-laravel-blanket/health.svg)](https://phpackages.com/packages/ahmadwaleed-laravel-blanket)
```

###  Alternatives

[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[georgeboot/laravel-echo-api-gateway

Use Laravel Echo with API Gateway Websockets

10435.5k](/packages/georgeboot-laravel-echo-api-gateway)[lomkit/laravel-rest-api

A package to build quick and robust rest api for the Laravel framework.

59152.2k](/packages/lomkit-laravel-rest-api)[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)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)

PHPackages © 2026

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