2017 © Pedro Peláez
 

library overdose

Overdose is a guardian which is protects your sistem from request flood.

image

ozziest/overdose

Overdose is a guardian which is protects your sistem from request flood.

  • Friday, February 6, 2015
  • by ozziest
  • Repository
  • 2 Watchers
  • 7 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Overdose

Overdose is a guardian which is protects your system from request floods., (*1)

Installation

To install through composer, simply put the following in your composer.json file:, (*2)

{
    "require": {
        "ozziest/overdose": "1.*"
    }
}
$ composer install

Usage

This library depended to desarrolla2/cache. You must create cache object and sending to Overdose for usage., (*3)

// Creating new cache object
use Desarrolla2\Cache\Cache;
use Desarrolla2\Cache\Adapter\File;

$cacheDir = '/tmp';
$adapter = new File($cacheDir);
$adapter->setOption('ttl', 3600);
$cache = new Cache($adapter);

// Creating overdose
$overdose = new Ozziest\Overdose\Overdose($cache);
try {
    $overdose->isSecure();
} catch (Ozziest\Overdose\OverdoseException $e) {
    exit($e->getMessage());
}

Configuration

You can change runtime options for security., (*4)

$overdose = new Ozziest\Overdose\Overdose($cache);
$overdose->set([
                'acceptable' => 5,
                'safe'       => 10,
                'max'        => 3,
                'recreation' => 60
            ]) 
         ->isSecure();
  • acceptable: Acceptable sec for every request interval. If request interval smaller than acceptable, that request is a overdose.
  • safe: Safety sec. for every request interval. If request interval greater than safe, overdose count will reduce.
  • max: Maximum overdose count for recreation time activation.
  • recreation: Recreation time. (sec)

The Versions

06/02 2015

dev-master

9999999-dev

Overdose is a guardian which is protects your sistem from request flood.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Özgür Adem Işıklı

php request guardian flood overdose

06/02 2015

1.0.0

1.0.0.0

Overdose is a guardian which is protects your sistem from request flood.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Özgür Adem Işıklı

php request guardian flood overdose

30/12 2014

0.1.0

0.1.0.0

Overdose is a guardian which is protects your sistem from request flood.

  Sources   Download

MIT

The Requires

 

by Özgür Adem Işıklı

php request guardian flood overdose