lamoda / tactician-rate-limit-bundle
Symfony bundle for lamoda/tactician-rate-limit library
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 14
Forks: 2
Open Issues: 0
Type:symfony-bundle
Requires
- lamoda/tactician-rate-limit: ^0.1.0
- symfony/config: ^3.4 || ^4.0 || ^5.0
- symfony/dependency-injection: ^3.4 || ^4.0 || ^5.0
- symfony/http-kernel: ^3.4 || ^4.0 || ^5.0
- symfony/yaml: ^3.4 || ^4.0 || ^5.0
Requires (Dev)
- davedevelopment/stiphle: ^0.9.2
- phpunit/phpunit: ^7.2
This package is auto-updated.
Last update: 2023-05-27 13:19:28 UTC
README
Utility wrapper for https://github.com/lamoda/tactician-rate-limit
Installation
Usage is as simple as
composer require lamoda/tactician-rate-limit-bundle
# Currently this bundle supports only https://github.com/davedevelopment/stiphle rate limiter, so install it:
composer require davedevelopment/stiphle
// Kernel public function registerBundles() { // ... $bundles[] = new \Lamoda\TacticianRateLimitBundle\LamodaTacticianRateLimitBundle(); // ... }
# config.yml lamoda_tactician_rate_limit: logging: service: logger # to use logging rate_limiter: stiphle: service: stiphle # point to stiphle service services: stiphle: class: Stiphle\Throttle\LeakyBucket