PHP code example of omerkamcili / pagination
1. Go to this page and download the library: Download omerkamcili/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/ */
omerkamcili / pagination example snippets
`
$data = [
'total' => 359,
'skip' => 20,
'url' => 'http://www.yourapp.com/currentPage',
];
$pagination = new \OmerKamcili\Pagination\Pagination($data);
print_r($pagination);
foreach($pagination->pages as $page => $url){
echo "Page $page: $url";
}