PHPackages                             sokil/php-fraud-detect - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. sokil/php-fraud-detect

ActiveLibrary[Security](/categories/security)

sokil/php-fraud-detect
======================

Detecting requrest flood

0.3(10y ago)10362MITPHPPHP &gt;=5.3

Since Dec 14Pushed 9y ago4 watchersCompare

[ Source](https://github.com/sokil/php-fraud-detect)[ Packagist](https://packagist.org/packages/sokil/php-fraud-detect)[ RSS](/packages/sokil-php-fraud-detect/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

php-fraud-detect
================

[](#php-fraud-detect)

Checker of fraud requests. This component allows you to check if some user do no more requests than allowed, and if limits of requests reched do some tasks like ban user or show captcha. Read mote about [Token bucket](https://en.wikipedia.org/wiki/Token_bucket).

[![Build Status](https://camo.githubusercontent.com/2c7d7b563352b288cd5af7f826dc36b7227f9bf46efa12d84865fdf8fa0d7a17/68747470733a2f2f7472617669732d63692e6f72672f736f6b696c2f7068702d66726175642d6465746563742e706e673f6272616e63683d6d61737465722631)](https://travis-ci.org/sokil/php-fraud-detect)[![Latest Stable Version](https://camo.githubusercontent.com/87a61d7b006ab934e51eb268ed405126bce7b8d812bca6fcd0250b4fbb4f5009/68747470733a2f2f706f7365722e707567782e6f72672f736f6b696c2f7068702d66726175642d6465746563742f762f737461626c652e706e67)](https://packagist.org/packages/sokil/php-fraud-detect)[![Coverage Status](https://camo.githubusercontent.com/7ffb13689223eadd8074f62547653018acf98a08d1d9fe42380b7b37f2154aa9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f736f6b696c2f7068702d66726175642d6465746563742f62616467652e706e67)](https://coveralls.io/r/sokil/php-fraud-detect)[!\[Gitter\](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/sokil/php-fraud-detect?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[![Total Downloads](https://camo.githubusercontent.com/81f40ccf7e978fa88ddfbfe68b9eb9339b152915013982df1e932156ea575a69/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f6b696c2f7068702d66726175642d6465746563742e737667)](https://packagist.org/packages/sokil/php-fraud-detect)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/edb1152297b349529abb31e323c166f2f44cdce52937b272ceda4a6ca35c5b09/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736f6b696c2f7068702d66726175642d6465746563742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sokil/php-fraud-detect/?branch=master)

Installation
------------

[](#installation)

You can install library through Composer:

```
{
    "require": {
        "sokil/php-fraud-detect": "dev-master"
    }
}
```

### Basic usage

[](#basic-usage)

If there are not enought functionality of your frontend server, like [Nginx request limits](http://nginx.org/ru/docs/http/ngx_http_limit_req_module.html), and you want to customize detection of fraud requests, this library is for you.

```
