Ratings | | Unique User Downloads | | Download Rankings |
Not yet rated by the users | | Total: 185 | | All time: 8,500 This week: 196 |
|
Description | | Author |
This class can generate HTML to display links for pagination.
It takes as parameters the total number of entries in a listing to be split in pages, the limit number of entries to display in a page, the current page number and the base URL of the page.
The class can return HTML to display links to let the user go between the different pages of the listing.
The link presentation can be customized using CSS styles. | |
|
|
Innovation award
Nominee: 4x |
|
Details
PHP Pagination
Simple pagination library implements a paging interface on collections of things.
Requirement
install
run this command
## usage
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<?php
use Lablnet\Pagination;
require '../vendor/autoload.php';
$pag1 = new Pagination(100,10,5,'/');
echo $pag1->pagination();
$pag2 = new Pagination(1000,10,25,'https://example.com/blogs/');
echo $pag2->pagination();
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.