devtoolboxuk / styx
AntiFlood Service for AEGIS
1.0.1
2019-05-07 11:37 UTC
Requires (Dev)
This package is auto-updated.
Last update: 2024-11-08 00:16:50 UTC
README
AntiFlood Service
Table of Contents
Background
Can be used to prevent multiple submissions of forms. But to be used along side CSRF protection
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
By default, this is preset to 60 seconds.
$this->antiFloodService->setAntiFloodDelay('30');
Get AntiFlood Delay
$this->antiFloodService->getAntiFloodDelay();
Detect AntiFlood
Returns a boolean if the AntiFlood item is set
$this->antiFloodService->detectAntiFlood();
Maintainers
License
MIT © DevToolboxUK