symfonyrate-limiting
Implement rate limiting with Symfony RateLimiter component; configure sliding window, token bucket, and fixed window algorithms
When & Why to Use This Skill
This Claude skill automates the implementation and configuration of the Symfony RateLimiter component within PHP applications. It enables developers to quickly deploy robust traffic control mechanisms, supporting industry-standard algorithms such as sliding window, token bucket, and fixed window to enhance application security and resource management.
Use Cases
- Protecting authentication endpoints: Implementing rate limits on login and password reset routes to prevent brute-force and credential-stuffing attacks.
- API Rate Limiting: Managing request throughput for public or private APIs to ensure service stability and prevent infrastructure exhaustion.
- Custom Traffic Shaping: Configuring specific algorithms like the Token Bucket for handling bursty traffic or the Sliding Window for precise time-based restrictions.
- Resource Optimization: Reducing server load by limiting expensive operations or third-party API calls initiated by users.
| name | symfony:rate-limiting |
|---|---|
| description | Use when symfony rate limiting |
symfony:rate-limiting (Micro)
Use when
- Use when symfony rate limiting
Rules
- Keep changes minimal and focused
- Ask before running servers/builds/tests
- Load reference/examples only on explicit request
References
reference.mddocs/complexity-tiers.md