bouncer / bouncer
A PHP library to log and analyse HTTP traffic, throttle and block suspicious agents.
Installs: 413
Dependents: 1
Suggesters: 0
Security: 0
Stars: 51
Watchers: 3
Forks: 10
Open Issues: 0
Requires
- php: >=5.3.9
- monolog/monolog: ~1.23.0
- symfony/http-foundation: ~2.7.35
README
A PHP library to log and analyse HTTP traffic, throttle and block suspicious agents.
Installation
Install the latest version with
$ composer require bouncer/bouncer
Basic Usage
Start Bouncer as soon as possible in your codebase.
<?php use \Bouncer\Bouncer; $bouncer = new Bouncer(); $bouncer->start();
Cache
To properly operate, a cache backend needs to be defined. If no cache is set, Bouncer will try to use APC/APCu.
<?php use \Bouncer\Bouncer; $memcache = new Memcache(); $memcache->addServer('localhost'); $bouncer = new Bouncer(array( 'cache' => \Bouncer\Cache\Memcache($memcache) )); $bouncer->start();
Author
François Hodierne - francois@hodierne.net - http://francois.hodierne.net/
License
Bouncer is licensed under the MIT License - see the LICENSE
file for details