Download the PHP package fet/laminas-rate-limiting without Composer
On this page you can find all versions of the php package fet/laminas-rate-limiting. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fet/laminas-rate-limiting
More information about fet/laminas-rate-limiting
Files in fet/laminas-rate-limiting
Package laminas-rate-limiting
Short Description A rate limiting module for Laminas MVC applications.
License MIT
Homepage https://github.com/f-e-t/laminas-rate-limiting
Informations about the package laminas-rate-limiting
Introduction
The fet/laminas-rate-limiting
package provides a rate limiting solution for Laminas MVC applications. It allows you to set limits on how often certain routes can be accessed within a specified time window.
Installation
To install this package, use Composer:
Make sure you have Composer installed on your system before running this command.
Enable the Fet\LaminasRateLimiting
module in your config/application.config.php
file.
Configuration
Define your rate limiting rules in your module.config.php
or global configuration file.
If you want to limit all routes, you can use a '*' as route name.
Storages
As of the current release, this package exclusively supports Redis for backend storage.
Custom storage
If you want to provide your own storage implementation, make sure your class adheres to the Fet\LaminasRateLimiting\Storage\StorageInterface
contract.
Tests
Run the tests with:
All versions of laminas-rate-limiting with dependencies
laminas/laminas-mvc Version ^3.1
laminas/laminas-servicemanager Version ^3.4
laminas/laminas-eventmanager Version ^3.2
ext-redis Version *