devoralive/traffic-limit-bundle
Symfony bundle for rate limiting requests via Redis using SncRedisBundle. Define multiple limit profiles (amount/ttl) and Redis clients in config, then access the generated services from the container to enforce per-key traffic limits.
userId) for premium features or to comply with usage policies (e.g., "10 requests/minute for free users").ip or user-agent).experiment_group_id) during rollouts.Adopt if:
Look elsewhere if:
symfony/rate-limiter (Symfony 6+).spatie/rate-limiter (Laravel).For Executives: "This package lets us enforce request limits (e.g., ‘100 calls/minute per user’) with minimal dev effort, reducing API abuse and cloud costs. It’s like a ‘speed bump’ for bots or free-tier users—simple to implement, leveraging Redis for scalability. Tradeoff: It’s open-source (GPL) and hasn’t been updated recently, but it’s a drop-in solution for our Symfony stack. Alternatives would require custom dev work or paid services."
For Engineering: *"We can use this to:
low_limit for public APIs, high_limit for partners).spatie/rate-limiter later. Let’s prototype it for the API abuse issue first."*How can I help you explore Laravel packages today?