1. Go to this page and download the library: Download httpoz/locked 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/ */
httpoz / locked example snippets
composer
use HttpOz\Locked\Rules\Rule;
class InActivePeriod extends Rule
{
/**
* The boolean response of this rule is used to determine whether the rule has passed or not.
*/
public function passes() : bool {
return strtotime( 'today' ) >= strtotime('2018-05-31') && strtotime( 'today' ) <= strtotime('2022-05-31');
}
}