1. Go to this page and download the library: Download contenir/cache 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/ */
contenir / cache example snippets
use Contenir\Cache\Repository\FileRepository;
$repo = new FileRepository('/var/www/shared/pagecache.local.php');
$state = $repo->get();
if ($state->enabled) {
// Apply cache options ($state->options) and route overrides ($state->routes)
}