Download the PHP package medisolbv/pagination without Composer
On this page you can find all versions of the php package medisolbv/pagination. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download medisolbv/pagination
More information about medisolbv/pagination
Files in medisolbv/pagination
Download medisolbv/pagination
More information about medisolbv/pagination
Files in medisolbv/pagination
Vendor medisolbv
Package pagination
Short Description A simple package to allow easy generation of pagination links
License MIT
Package pagination
Short Description A simple package to allow easy generation of pagination links
License MIT
Please rate this library. Is it a good library?
Informations about the package pagination
Medisol Pagination
This is a simple package to generate the correct pagination links.
Usage
A new Paginator
object can be instantiated with the Paginator::create
method. This method takes two parameters;
int $currentPage
int $totalPages
.
Generating links
After instantiating a new Paginator
object, the generate
method can be used to generate the required links.
Getting the links
After generating links, you can use these links by calling the Paginator::getLinks
method. When returning the result
in JSON format, the links will be serialized to JSON.
Available link methods
PaginationLink::getPage
: returns the link's page numberPaginationLink::isActive
: returns whether the current page is this pagePaginationLink::isDisabled
: returns whether this page is disabled (for example, the ellipsis between different link ranges).
All versions of pagination with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
The package medisolbv/pagination contains the following files
Loading the files please wait ....