Skip to content

MEDIGO/bouncer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bouncer

Build Status Scrutinizer Code Quality

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

About

A PHP library to log and analyse HTTP traffic, throttle and block suspicious agents.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%