1. Go to this page and download the library: Download popphp/pop-paginator 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/ */
popphp / pop-paginator example snippets
use Pop\Paginator\Paginator;
$paginator = Paginator::createRange(42); // Returns a Pop\Paginator\Range object
echo $paginator;
use Pop\Paginator\Paginator;
$paginator = Paginator::createRange(4512, 10, 10); // Returns a Pop\Paginator\Range object
echo $paginator;
use Pop\Paginator\Form;
$paginator = new Form(558); // Returns a Pop\Paginator\Form object
echo $paginator;
use Pop\Paginator\Form;
$paginator = new Form(558); // Returns a Pop\Paginator\Form object
$paginator->setBookends([
'start' => '«',
'previous' => '‹',
'next' => '›',
'end' => '»'
])