composer require khamdullaevuz/antiflood
<?php
require 'vendor/autoload.php';
use Khamdullaevuz\AntiFlood;
$flood = new AntiFlood();
if($flood->check(10, 200))
echo "Flood not detected";
else
echo "Flood detected";
Author: Elbek Khamdullaev