adrienbrault / pagerfanta-iterator
Installs: 469 689
Dependents: 0
Suggesters: 1
Security: 0
Stars: 5
Watchers: 2
Forks: 7
Open Issues: 2
Requires
- pagerfanta/core: ^3.0
Requires (Dev)
- phpunit/phpunit: ^9.5
README
This allows to easily traverse all the pages of a pagerfanta instance:
$pager->setMaxPerPage(10); foreach (PagerfantaIterator::iterateOverPages($pager) as $page => $pageResults) { }
This allows to easily traverse all the elements of all the pages:
$pager->setMaxPerPage(10); foreach (PagerfantaIterator::iterateOverElements($pager) as $index => $element) { }