2017 © Pedro Peláez
 

library paginator

Pagination for collections in PHP

image

phpextra/paginator

Pagination for collections in PHP

  • Saturday, August 16, 2014
  • by jkobus
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4,906 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

Paginator (PHPExtra\Paginator)

Latest Stable Version Total Downloads License Build Status Scrutinizer Code Quality Code Coverage GitTip, (*1)

Usage

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

$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., (*3)

Requirements

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

Authors

Jacek Kobus - <kobus.jacek@gmail.com>

License information

See the file LICENSE.txt for copying permission.

The Versions

16/08 2014

dev-master

9999999-dev

Pagination for collections in PHP

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Jacek Kobus