PHPackages                             m1guelpf/laravel-etag - 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. m1guelpf/laravel-etag

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

m1guelpf/laravel-etag
=====================

A Laravel ratelimiter that supports ETag headers.

v1.1.1(7y ago)2180[1 PRs](https://github.com/m1guelpf/laravel-etag/pulls)MITPHPPHP ^7.0

Since Apr 13Pushed 6y agoCompare

[ Source](https://github.com/m1guelpf/laravel-etag)[ Packagist](https://packagist.org/packages/m1guelpf/laravel-etag)[ Docs](https://github.com/m1guelpf/laravel-etag)[ RSS](/packages/m1guelpf-laravel-etag/feed)WikiDiscussions master Synced yesterday

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

A Laravel ratelimiter that supports ETag
========================================

[](#a-laravel-ratelimiter-that-supports-etag)

[![Latest Version on Packagist](https://camo.githubusercontent.com/907bcb2e4466793c44f279eff294cdf9e34ff8a65f7e3b2151db02716b9c69c7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d316775656c70662f6c61726176656c2d657461672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/m1guelpf/laravel-etag)[![Total Downloads](https://camo.githubusercontent.com/aa8e0809eb5364577142b1f20fa3875e9959451c4590efe1a05a66860ec52ea0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d316775656c70662f6c61726176656c2d657461672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/m1guelpf/laravel-etag)

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

[](#installation)

You can install the package via composer:

```
composer require m1guelpf/laravel-etag
```

To use it, you must replace the throttle middleware in your Http Kernel file with `\M1guelpf\Etag\EtagMiddleware::class`:

```
// app/Http/Kernel.php

...
protected $routeMiddleware = [
        ...
        'throttle' => \M1guelpf\Etag\EtagMiddleware::class,
    ];
```

Usage
-----

[](#usage)

To throttle a route while respecting ETag headers, just add the throttle middleware like you'd do without the package:

```
// in a routes file
Route::get('my-page', 'MyController')->middleware('throttle');
```

All the options available for the stock Laravel throttle are also applicable with this package.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Miguel Piedrafita](https://github.com/m1guelpf)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

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

Total

3

Last Release

2808d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23558090?v=4)[Miguel Piedrafita](/maintainers/m1guelpf)[@m1guelpf](https://github.com/m1guelpf)

---

Top Contributors

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

---

Tags

etaglaravelmiddlewarepackagerate-limitratelimitmiddlewarelaravelrate-limiterEtagm1guelpfratelimiterlaravel-etag

### Embed Badge

![Health badge](/badges/m1guelpf-laravel-etag/health.svg)

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

###  Alternatives

[matthewbdaly/laravel-etag-middleware

A Laravel middleware for adding ETags to HTTP requests to improve response times

64326.0k2](/packages/matthewbdaly-laravel-etag-middleware)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[tomschlick/request-migrations

HTTP Request Migrations

1844.5k](/packages/tomschlick-request-migrations)[onlime/laravel-http-client-global-logger

A global logger for the Laravel HTTP Client

1935.1k](/packages/onlime-laravel-http-client-global-logger)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

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

Easily retrieve and manipulate `Json` across your application.

363.5k](/packages/laragear-json)

PHPackages © 2026

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