swilliams/pagination

There is no license information available for the latest version (dev-master) of this package.

dev-master 2015-12-30 00:37 UTC

This package is auto-updated.

Last update: 2024-10-29 04:03:56 UTC


README

This is a simple library to generate a numerical array of page numbers based on:

  • Total number of pages
  • Current page
  • Number of pages to show

It will generate the page numbers about the current page:

// Will return array(19, 20, 21, 22, 23, 24, 25, 26, 27, 28)
Pagination::paginate(76, 23, 10);