Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Pagerfanta
✓ use Pagerfanta\Pagerfanta;
Paginate an array of items.
use Pagerfanta\Pagerfanta;
use Pagerfanta\Adapter\ArrayAdapter;
$adapter = new ArrayAdapter(range(1, 100));
$pagerfanta = new Pagerfanta($adapter);
$pagerfanta->setMaxPerPage(10);
$pagerfanta->setCurrentPage(1);
foreach ($pagerfanta->getCurrentPageResults() as $result) {
echo $result;
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.