1. Go to this page and download the library: Download ikkez/f3-pagination 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/ */
php
// [...]
$f3->set('articleList', $subset);
// we continue after the previous example about setting up the record pagination
// build page links
$pages = new Pagination($subset['total'], $subset['limit']);
// add some configuration if needed
$pages->setTemplate('templates/pagebrowser-advanced.html');
// for template usage, serve generated pagebrowser to the hive
$f3->set('pagebrowser', $pages->serve());
php
$pages = new Pagination($article_count, $items_per_page, 'paginationToken');