Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() |
![]() ![]() |
Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2022-04-08 (11 months ago) ![]() | Not yet rated by the users | Total: 76 This week: 1 | All time: 10,012 This week: 154![]() |
Version | License | PHP version | Categories | |||
peter-pagination 1.0 | GNU General Publi... | 5 | HTML, PHP 5 |
Description | Author Ujah Chigozie Contributor | |
This package can generate HTML to navigate between listing pages. |
Pagination is a simple pagging in php
Installation is super-easy via Composer:
composer require peterujah/pagination
Hierarchical can be use as an array, html or google organizations chart
use Peterujah\NanoBlock\Pagination;
$paging = new Pagination($rowCount, Pagination::LIST);
$paging = new Pagination($rowCount, Pagination::LINK);
Dump array
$paging = new Pagination(100, Pagination::LIST);
$paging->setLimit(20);
$paging->setCurrentPage($_GET["page"]??1)->show();
$paging = new Pagination(100, Pagination::LIST);
$paging->setLimit(20);
$html = $paging->setCurrentPage($_GET["page"]??1)->get();
Use built in css style, only work with $paging->show()
method
$paging->setAllowCss(true);
Initalisation options new Pagination($rowCount, Pagination::LINK)
| Options | Description | |-----------------|-------------------------------------------------------------------------------------| | LIST | Retrieve result as an html list | | LINK | Retrieve result in HTML link |
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Lic. | License text | ||
![]() ![]() |
Doc. | Documentation |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.