PHPackages                             devtoolboxuk/antiflood - 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. devtoolboxuk/antiflood

ActiveLibrary[Security](/categories/security)

devtoolboxuk/antiflood
======================

AntiFlood Service

1.1.5(7y ago)019MITPHP

Since Aug 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/devtoolboxuk/antiflood)[ Packagist](https://packagist.org/packages/devtoolboxuk/antiflood)[ RSS](/packages/devtoolboxuk-antiflood/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (7)Dependencies (1)Versions (8)Used By (0)

AntiFlood
=========

[](#antiflood)

AntiFlood Service

[![Build Status](https://camo.githubusercontent.com/d1dfc6d5efc8236f34e89f8cdf3b2879e1bd1ee72a902a0612c7615a3e318497/68747470733a2f2f6170692e7472617669732d63692e6f72672f646576746f6f6c626f78756b2f616e7469666c6f6f642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/devtoolboxuk/antiflood)[![Coveralls](https://camo.githubusercontent.com/7b9dce93bc7424ff8b6ba43c6d5c72766e7102f84aabd4c96c3dd10398277d94/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f646576746f6f6c626f78756b2f616e7469666c6f6f642f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/devtoolboxuk/antiflood?branch=master)[![CodeCov](https://camo.githubusercontent.com/89190c2b59ad189e9db924b4b26df208ee396d5efdf760b4d663646dbf4a1a0c/68747470733a2f2f636f6465636f762e696f2f67682f646576746f6f6c626f78756b2f616e7469666c6f6f642f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/devtoolboxuk/antiflood)

Table of Contents
-----------------

[](#table-of-contents)

- [Background](#Background)
- [Usage](#Usage)
- [Maintainers](#Maintainers)
- [License](#License)

Background
----------

[](#background)

Can be used to prevent multiple submissions of forms. But to be used along side CSRF protection

Usage
-----

[](#usage)

Usage of the hashing service

```
$ composer require devtoolboxuk/antiflood
```

Then include Composer's generated vendor/autoload.php to enable autoloading:

```
require 'vendor/autoload.php';
```

```
use devtoolboxuk/antiflood;

$this->antiFloodService = new AntiFloodService('_default',60);
```

##### Set AntiFlood Delay

[](#set-antiflood-delay)

By default, this is preset to 60 seconds.

```
$this->antiFloodService->setAntiFloodDelay('30');
```

##### Get AntiFlood Delay

[](#get-antiflood-delay)

```
$this->antiFloodService->getAntiFloodDelay();
```

##### Detect AntiFlood

[](#detect-antiflood)

Returns a boolean if the AntiFlood item is set

```
$this->antiFloodService->detectAntiFlood()
```

Maintainers
-----------

[](#maintainers)

[@DevToolboxUk](https://github.com/DevToolBoxUk).

License
-------

[](#license)

[MIT](LICENSE) © DevToolboxUK

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~43 days

Recently: every ~58 days

Total

7

Last Release

2575d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/11e7828108a460ad0b3dc92c08fa9e0e863168b8dae2b4d7041a6d699f936faa?d=identicon)[devtoolboxuk](/maintainers/devtoolboxuk)

---

Top Contributors

[![devtoolboxuk](https://avatars.githubusercontent.com/u/6337609?v=4)](https://github.com/devtoolboxuk "devtoolboxuk (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/devtoolboxuk-antiflood/health.svg)

```
[![Health](https://phpackages.com/badges/devtoolboxuk-antiflood/health.svg)](https://phpackages.com/packages/devtoolboxuk-antiflood)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
