2017 © Pedro Peláez
 

symfony-bundle tactician-rate-limit-bundle

Symfony bundle for lamoda/tactician-rate-limit library

image

lamoda/tactician-rate-limit-bundle

Symfony bundle for lamoda/tactician-rate-limit library

  • Friday, July 20, 2018
  • by omnilight
  • Repository
  • 3 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Lamoda Tactician rate limit middleware bundle

Utility wrapper for https://github.com/lamoda/tactician-rate-limit, (*1)

Installation

Usage is as simple as, (*2)

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

The Versions