Skip to content
This repository has been archived by the owner on Nov 21, 2017. It is now read-only.

Latest commit

 

History

History
48 lines (33 loc) · 1.98 KB

README.md

File metadata and controls

48 lines (33 loc) · 1.98 KB

#Paginator (PHPExtra\Paginator)

Latest Stable Version Total Downloads License Build Status Scrutinizer Code Quality Code Coverage GitTip

##Usage

Paginator is fully compatible with Collection (PHPExtra/Collection). It's task is to split large collections into pages.

$page = 2;
$itemsPerPage = 10;
$products = new Collection(...);
$paginator = new Paginator($products, $page, $itemsPerPage);

echo $paginator->getPage(); // returns a collection with size of 10 for current page
echo $paginator->getNextPageNumber(); // returns "3"
echo $paginator->hasNextPage(); // returns bool true or false

##Changelog

No release yet

##Contributing

All code contributions must go through a pull request. Fork the project, create a feature branch, and send me a pull request. To ensure a consistent code base, you should make sure the code follows the coding standards. If you would like to help take a look at the list of issues.

##Requirements

See **composer.json** for a full list of dependencies.

##Authors

Jacek Kobus - <[email protected]>

License information

See the file LICENSE.txt for copying permission.