symfony/rate-limiter
Symfony Rate Limiter provides token bucket rate limiting for your app. Create limiters with RateLimiterFactory and a storage backend (e.g., in-memory), then reserve tokens with blocking waits or consume instantly to allow/skip work based on availability.
reserve()/consume() pattern continues to integrate cleanly with Laravel’s middleware, queues, and CLI workflows.CompoundRateLimiterFactory (v7.3+) still enables multi-dimensional limits (e.g., per-IP and per-user), critical for SaaS monetization tiers.StorageInterface.symfony/rate-limiter package remains compatible with Laravel’s middleware system.consume()/reserve().InMemoryStorage) remains non-persistent. Mitigation: Redis (RedisStorage) or database (DoctrineStorage) is still mandatory for distributed environments.Unsafe unserialize phpstan rule (minor #64476) suggests a security-focused static analysis check for unserialization risks. While this is a minor change, it may trigger PHPStan warnings if the codebase uses unserialize() elsewhere. Mitigation:
phpstan in CI to catch potential issues.429 Too Many Requests responses be standardized?unserialize() elsewhere? If so, will the new PHPStan rule require refactoring?throttle middleware and integrate with queues/CLI.^7.4).Unsafe unserialize rule doesn’t flag false positives in unrelated code.unserialize warnings before proceeding.symfony/rate-limiter alongside Symfony/Laravel (e.g., ^8.1 for v8.1.1).config/rate_limiter.php.Retry-After, Redis drops) remain the same.unserialize() elsewhere, the new PHPStan rule may expose vulnerabilities. Mitigation:
unserialize() usage.serialize()/unserialize() only with trusted data (e.g., internal caching).How can I help you explore Laravel packages today?