2017 © Pedro Peláez
 

library pagination

Utility to generate an intelligent ``range`` of links based on the current page and total pages.

image

anekdotes/pagination

Utility to generate an intelligent ``range`` of links based on the current page and total pages.

  • Thursday, November 17, 2016
  • by anekdotes
  • Repository
  • 2 Watchers
  • 0 Stars
  • 136 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

Anekdotes Pagination

Latest Stable Version Build Status StyleCI License Total Downloads Codacy Badge, (*1)

Utility to generate an intelligent "range" of links based on the current page and total pages., (*2)

Installation

Install via composer into your project:, (*3)

composer require anekdotes/pagination

Basic Usage

Instantiate the class and use the pager method with a few parameters., (*4)

  • $pages: total number of pages, (*5)

  • $current: current page, (*6)

  • $length (optional): how many page to display, (*7)

use Anekdotes\Pagination\Pagination;

$pagination = new Pagination();
var_dump($pagination->pager(10, 1));
/*
array(6) {
  [0]=>
  int(1)
  [1]=>
  int(2)
  [2]=>
  int(3)
  [3]=>
  int(4)
  [4]=>
  int(5)
  [5]=>
  int(6)
}
*/

The Versions

17/11 2016

dev-master

9999999-dev

Utility to generate an intelligent ``range`` of links based on the current page and total pages.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

page pagination pager

19/07 2016

1.0.1

1.0.1.0

Utility to generate an intelligent ``range`` of links based on the current page and total pages.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

page pagination pager

19/07 2016

1.0.0

1.0.0.0

Utility to generate an intelligent ``range`` of links based on the current page and total pages.

  Sources   Download

MIT

The Requires

 

The Development Requires

page pagination pager