Download the PHP package quioteframework/ratelimit without Composer
On this page you can find all versions of the php package quioteframework/ratelimit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download quioteframework/ratelimit
More information about quioteframework/ratelimit
Files in quioteframework/ratelimit
Package ratelimit
Short Description Rate limiting (login throttle, PDO-backed limiter storage) for Quiote, built on symfony/rate-limiter.
License MIT
Homepage https://github.com/quioteframework/ratelimit
Informations about the package ratelimit
quioteframework/ratelimit
Rate limiting (login throttle, PDO-backed limiter storage) for Quiote, built on symfony/rate-limiter.
Install
Use as a plain library (login throttle)
No plugins config entry needed. Instantiate directly where you need it:
General HTTP rate limiting (middleware)
RateLimitMiddleware throttles requests per client IP. It's registered by
RateLimitPlugin and opt-in via ratelimit.http.enabled:
ratelimit.http.enabled— defaultfalseratelimit.http.max_requests— default60ratelimit.http.window— default"1 minute"ratelimit.http.policy—sliding_window/fixed_window/token_bucket, defaultsliding_windowratelimit.http.trust_forwarded_for— trustX-Forwarded-Forfor the client key instead ofREMOTE_ADDR, defaultfalse(only enable behind a trusted reverse proxy)
Limiter state defaults to an in-memory store (Symfony\Component\RateLimiter\Storage\InMemoryStorage,
reset every process/worker restart). Set ratelimit.storage to redis for
state shared across workers and processes via a Redis connection
(ratelimit.redis.dsn, default redis://127.0.0.1:6379) — requires a Redis
client (predis/predis, ext-redis, or ext-relay). Bind PdoRateLimiterStorage
as the Symfony\Component\RateLimiter\Storage\StorageInterface service
instead for state shared without a Redis dependency. An over-limit request
gets a 429 application/problem+json response with a Retry-After header.
License
MIT. See LICENSE.
All versions of ratelimit with dependencies
ext-pdo Version *
quioteframework/quiote Version ^4.0
symfony/rate-limiter Version ^8.0
symfony/cache Version ^8.0