PHP code example of jnjxp / pagination

1. Go to this page and download the library: Download jnjxp/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/ */

    

jnjxp / pagination example snippets


$totalItems  = 1000;
$perPage     = 10;
$currentPage = 13;
$neighbors   = 3;


$helper = new Jnjxp\Pagination\Helper();

echo $helper
    ->totalItems($totalItems)
    ->perPage($perPage)
    ->currentPage($currentPage)
    ->neighbors($neighbors);