k2klettern/array-pagination

Set a Pagination from an array of results

1.0 2018-05-22 11:05 UTC

This package is not auto-updated.

Last update: 2024-09-20 03:18:09 UTC


README

Class to Paginate results from an array by Eric Zeidan k2klettern@gmail.com

How to use it

Clone in your vendor/

Install via composer update

or

composer create-project k2klettern/array-pagination

To get the Pagination just instantiate the class

$arrayToPaginate;

$c = new \arrayPagination\thePagination(); $c->setArray($arrayToPaginate); $arrayFiltered = $c->getPagination();

Do whatever you want with your array filtered

print the pagination

$c->theArrayPagination();