Download the PHP package fastpress/paginator without Composer
On this page you can find all versions of the php package fastpress/paginator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download fastpress/paginator
More information about fastpress/paginator
Files in fastpress/paginator
Download fastpress/paginator
More information about fastpress/paginator
Files in fastpress/paginator
Vendor fastpress
Package paginator
Short Description Pagination library for FastPress applications
License MIT
Homepage https://github.com/fastpress/paginator
Package paginator
Short Description Pagination library for FastPress applications
License MIT
Homepage https://github.com/fastpress/paginator
Please rate this library. Is it a good library?
Informations about the package paginator
Paginator
A PHP Pagination Library
The Paginator class provides a simple and efficient way to implement pagination in your PHP applications. It handles the calculation of page numbers, total records, and other related information, making it easy to create paginated interfaces.
Installation
To use the Paginator library, you can install it using Composer:
Usage
Create a new Paginator instance:
Get pagination data:
The $paginationData array will contain the following information:
- current_page_number: The current page number.
- total_records: The total number of records.
- total_records_remaining: The number of remaining records.
- total_pages: The total number of pages.
- limit: The records per page limit.
- has_next_page: Whether there is a next page.
- has_prev_page: Whether there is a previous page.
- next_page: The next page number (if available).
- previous_page: The previous page number (if available).
- display_pages: An array of page numbers to display in the pagination controls.
Example
All versions of paginator with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package fastpress/paginator contains the following files
Loading the files please wait ....