php-extended / php-paged-iterator-object
A library that implements the php-extended/php-paged-iterator-interface library
Requires
- php: >=7.2
- php-extended/php-paged-iterator-interface: ^4
Requires (Dev)
README
A library that implements the php-extended/php-paged-iterator-interface library.
Installation
The installation of this library is made via composer.
Download composer.phar
from their website.
Then add to your composer.json :
"require": {
...
"php-extended/php-paged-iterator-object": "^3"
...
}
Then run php composer.phar update
to install this library.
The autoloading of all classes of this library is made through composer's autoloader.
Basic Usage
This library provides two classes.
The first one is the PagedIterator
that is an iterator that also conveys
data about the pagination.
The second one is the PaginationIterator
, that uses an PagedDataProviderInterface
to get back the data under the form of PagedIterator
s and takes care of
the loops to transform an iterator of PagedIterators into an iterator of the
inner objects itself.
License
MIT (See license file).