PHP code example of mohammadsgh / paginator
1. Go to this page and download the library: Download mohammadsgh/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/ */
mohammadsgh / paginator example snippets
use Pagination\Paginator;
$totalItems = 100;
$perPage = 3;
$currentPage = 1;
$pagination = new Paginator($totalItems, $perPage, $perPage, '');
echo $pagination->links();