bouncer
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:A PHP library to log and analyse HTTP traffic, throttle and block suspicious agents.
# Bouncer

[![Build Status](https://travis-ci.org/znarf/bouncer.svg?branch=master)](https://travis-ci.org/znarf/bouncer)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/znarf/bouncer/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/znarf/bouncer/?branch=master)

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

## Installation

Install the latest version with

```bash
$ composer require bouncer/bouncer
```

## Basic Usage

Start Bouncer as soon as possible in your codebase.

```php
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
addServer('localhost');

$bouncer = new Bouncer(array(
  'cache' => \Bouncer\Cache\Memcache($memcache)
));

$bouncer->start();
```

### Author

François Hodierne -  - 

### License

Bouncer is licensed under the MIT License - see the `LICENSE` file for details

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。