laravel-token-rate-limiter maintained by chaturbhuj
Description
Token-based rate limiter middleware for Laravel APIs
Author
Last update
2025/07/29 15:05
(dev-main)
License
Downloads
0
Laravel Token Rate Limiter
A simple, token-based rate limiter middleware for Laravel APIs.
This package limits each token per route to 1 request every TTL seconds (configurable).
🚀 Features
- Token-based identification via
Authorization: Bearer <token> - Per-route throttling per token
- Configurable TTL via published config
- PSR‑4 autoloaded and Laravel‑package compatible
- Works with Laravel default cache (file, Redis, etc.)
📦 Installation
composer require chaturbhuj/laravel-token-rate-limiter
php artisan vendor:publish --tag=config