perimeter/rate-limiter-php
A lightweight PHP rate-limiting library from Perimeter for controlling request throughput across APIs and endpoints. Define limits and time windows to prevent abuse, smooth traffic spikes, and protect application resources with a straightforward, consistent API.
RateLimiter, cache-backed throttling, and throttle middleware should be the default path. If a specific algorithm is required, evaluate Symfony RateLimiter or a maintained equivalent instead.RateLimiterInterface with adapter implementations for this package and Laravel/Symfony. Run contract tests against both, shadow-compare behavior, then migrate to the maintained implementation and remove the package.How can I help you explore Laravel packages today?