1. Go to this page and download the library: Download solution10/heat library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
solution10 / heat example snippets
$c = new Doctrine\Common\Cache\RedisCache();
$h = new Solution10\Heat\Heat($_SERVER['REMOTE_ADDR'], $c);
$c = new Doctrine\Common\Cache\RedisCache();
$h = new Solution10\Heat\Heat($_SERVER['REMOTE_ADDR'], $c);
if ($user->gotTheirPasswordWrong()) {
$h->increase(25);
}
if ($user->solvedCAPCTHA()) {
$h->decrease(50);
}
// Boolean checks;
$h->isSafe();
$h->isWarning();
$h->isCritical();
// Checking state against constants;
$h->getState() === Heat::SAFE;
$h->getState() === Heat::WARNING;
$h->getState() === Heat::CRITICAL;