chaturbhuj / laravel-token-rate-limiter
Token-based rate limiter middleware for Laravel APIs
Package info
github.com/dbappeak/laravel-token-rate-limiter
pkg:composer/chaturbhuj/laravel-token-rate-limiter
dev-main
2025-07-29 13:05 UTC
Requires
- php: ^8.1
- illuminate/support: ^8|^9|^10
This package is auto-updated.
Last update: 2026-03-01 00:47:52 UTC
README
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