2017 © Pedro Peláez
 

library pagination

Creates customizable pagination and pager links. Limits and offsets arrays and database queries. Built-in styles for Bootstrap, Zurb Foundation, Semantic UI, Materialize, and UIkit.

image

bootpress/pagination

Creates customizable pagination and pager links. Limits and offsets arrays and database queries. Built-in styles for Bootstrap, Zurb Foundation, Semantic UI, Materialize, and UIkit.

  • Thursday, January 19, 2017
  • by BootPress
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,113 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

use BootPress\Pagination\Component as Pagination;

Packagist ![License MIT][badge-license] HHVM Tested ![PHP 7 Supported][badge-php] Build Status ![Code Climate][badge-code-climate] Test Coverage, (*1)

Creates customizable pagination and pager links. Limits and offsets arrays and database queries. Built-in styles for Bootstrap, Zurb Foundation, Semantic UI, Materialize, and UIkit., (*2)

Installation

Add the following to your composer.json file., (*3)

``` bash { "require ": { "bootpress/pagination": "^1.0" } }, (*4)


## Example Usage ``` php <?php use BootPress\Pagination\Component as Paginator; $pagination = new Paginator; // Paginate an array $records = range(1, 100); if (!$pagination->set('page', 10, 'http://example.com')) { $pagination->total(count($records)); } $display = array_slice($records, $pagination->offset, $pagination->length); echo implode(',', $display); // 1,2,3,4,5,6,7,8,9,10 // Generate pagination links echo $pagination->links(); /*
*/ // And a pager for good measure echo $pagination->pager(); /* */

License

The MIT License (MIT). Please see License File for more information., (*5)

The Versions

19/01 2017

dev-master

9999999-dev https://www.bootpress.org/components/pagination.html

Creates customizable pagination and pager links. Limits and offsets arrays and database queries. Built-in styles for Bootstrap, Zurb Foundation, Semantic UI, Materialize, and UIkit.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kyle Gadd

pagination paginate paginator pager bootpress

03/10 2016

v1.0

1.0.0.0 https://www.bootpress.org/components/pagination/

Creates customizable pagination and pager links. Limits and offsets arrays and database queries. Built-in styles for Bootstrap, Zurb Foundation, Semantic UI, Materialize, and UIkit.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kyle Gadd

pagination paginate paginator pager bootpress