1. Go to this page and download the library: Download folded/history 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/ */
folded / history example snippets
use function Folded\addRequestedUrlToHistory;
session_start();
addRequestedUrlToHistory();
use function Folded\getHistory;
echo getHistory(-1);
use function Folded\getHistory;
echo getHistory();
use function Folded\getAllHistory;
$urls = getAllHistory();
foreach ($urls as $url) {
echo $url;
}
use function Folded\hasHistory;
if (hasHistory(-1)) {
echo "has history -1";
} else {
echo "has not history -1";
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.