PHPackages                             devtoolboxuk/styx - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. devtoolboxuk/styx

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

devtoolboxuk/styx
=================

AntiFlood Service for AEGIS

1.0.1(7y ago)024MITPHP

Since Apr 29Pushed 7y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Styx AntiFlood
==============

[](#styx-antiflood)

AntiFlood Service

[![Build Status](https://camo.githubusercontent.com/d345c74dbabbfeaa3d80c0947b07560e2d1d689021cf9d03fbad7117dc9720cf/68747470733a2f2f6170692e7472617669732d63692e6f72672f646576746f6f6c626f78756b2f737479782e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/devtoolboxuk/styx)[![Coveralls](https://camo.githubusercontent.com/4182b3c41bd4e3afd65662ccc864eec4bcbab1e6abf2b9a1eb3c77531b0343b3/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f646576746f6f6c626f78756b2f737479782f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/devtoolboxuk/styx?branch=master)[![CodeCov](https://camo.githubusercontent.com/c70919b8240286ab70ecb0d341aa1bffcb3f42f41ea61ed3e068717d70c67965/68747470733a2f2f636f6465636f762e696f2f67682f646576746f6f6c626f78756b2f737479782f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/devtoolboxuk/styx)

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/styx
```

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

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

```
use devtoolboxuk/styx;

$this->antiFloodService = new Styx('_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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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 ~8 days

Total

2

Last Release

2565d 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 (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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