2017 © Pedro Peláez
 

library slim-redis-rlimit

Slim Middleware for having Rate Limits with Redis

image

nhulsch/slim-redis-rlimit

Slim Middleware for having Rate Limits with Redis

  • Wednesday, August 17, 2016
  • by nhulsch
  • Repository
  • 1 Watchers
  • 2 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Slim Redis Ratelimit

PSR-7 Ratelimiter, (*1)

Usage

$app = new Slim\App();

$app->add(new \Slim\Middleware\RedisRatelimit('tcp://127.0.0.1:6379', 500, 300));

This will be called on every requests and checks if the number of requests (in this case 500) exceeds within 300 seconds., (*2)

Class will also check if the Cloudflare UserIP header is set and will use that for tracking., (*3)

The Versions

17/08 2016

dev-master

9999999-dev

Slim Middleware for having Rate Limits with Redis

  Sources   Download

MIT

The Requires

 

by Nils Hulsch