Skip to content

devtoolboxuk/styx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Styx AntiFlood

AntiFlood Service

Build Status Coveralls CodeCov

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

@DevToolboxUk.

License

MIT © DevToolboxUK

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages