Download the PHP package adamlast/paginate without Composer
On this page you can find all versions of the php package adamlast/paginate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download adamlast/paginate
More information about adamlast/paginate
Files in adamlast/paginate
Download adamlast/paginate
More information about adamlast/paginate
Files in adamlast/paginate
Vendor adamlast
Package paginate
Short Description Pagination classes for traversable lists or collections
License MIT
Package paginate
Short Description Pagination classes for traversable lists or collections
License MIT
Please rate this library. Is it a good library?
Informations about the package paginate
Paginate
Simple Pagination library designed to work on any Traversable PHP collection. This can be an array or any class that implement the Iterator and Countable interfaces.
Installation
You can install Paginate using Composer. To do that simply require the package in your composer.json
file:
Then run composer update
to install the package.
Summary
There are two component classes:
PaginatorService
that takes the collection as a construction parameter and which returns a specified;Page
object that contains the items in the collection that should be on the 'Page' and relevant information about the Page that allows constructions like 'Page 1 of 25', etc/
Simple Example
Current To-do list
- PaginationService should support array_slice if possible.
- Parameter checking
- Exceptions and unit testing of exceptions
- Extend Page class with functions to support
Next Page
/Prev Page
functionality - More examples in documentation
- Support passing of closures to enable lazy loading of particular slice of collection if supported.
All versions of paginate with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8
The package adamlast/paginate contains the following files
Loading the files please wait ....