thamtech/yii2-ratelimiter-advanced
Advanced rate limiter filter for Yii2 using a leaky-bucket algorithm. Define multiple independent limits per action and identifier (IP, user ID, etc.), store allowance/timestamp automatically, customize responses (429, events, headers, callbacks), and support Retry-After.
Adopt if:
Look elsewhere if:
spatie/laravel-rate-limiter or laravel-throttle).nginx or Envoy).Prometheus).Executives: "This Yii2 package lets us enforce strict API usage limits (e.g., 100 requests/minute per IP) to block abuse while keeping costs low. It’s a drop-in solution that integrates with Redis—no custom dev work. For $0, we get enterprise-grade protection for our public endpoints, reducing support costs from bot traffic."
Engineering:
"A Redis-backed rate limiter with configurable rules (e.g., limit=100/minute/ip). Lightweight, open-source, and Yii2-native. Tradeoff: Last updated in 2020, but core logic is stable. Recommend pairing with monitoring to alert on throttled requests. Alternatives exist for Laravel, but this fits our stack perfectly."
How can I help you explore Laravel packages today?