Registry / utility / pagerfanta-pagerfanta

pagerfanta-pagerfanta

JSON →
library4.8.0phppackagistunverified

Pagination for PHP.

composer require pagerfanta/pagerfanta
INSTALL
IMPORT
SIG · PAGERFANTA-PAGERFA
P
pagerfanta-pagerfanta
utilityphpv4.8.0
harness data pending
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.

Upgrade
Version history
4.8.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
pagerfanta-pagerfanta — pip install pagerfanta-pagerfanta · libregistry