2017 © Pedro Peláez
 

library php-pagination

Simple and lightweight PHP pagination class that works with Twitter Bootstrap perfectly. Manages pagination variables through instantiable class, and markup rendering through view-like include file. http://web.onassar.com/blog/2012/06/09/github-project-php-pagination

image

samyoul/php-pagination

Simple and lightweight PHP pagination class that works with Twitter Bootstrap perfectly. Manages pagination variables through instantiable class, and markup rendering through view-like include file. http://web.onassar.com/blog/2012/06/09/github-project-php-pagination

  • Tuesday, September 5, 2017
  • by Samyoul
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 71 Forks
  • 0 Open issues
  • 1 Versions
  • 11 % Grown

The README.md

PHP Pagination

PHP-Pagination contains an instantiable class, along with a view which renders the pagination markup., (*1)

The purpose of this library is to provide a simple API to render pagination markup, without having to worry about including common files and set too many settings. With this class, you simply pass in your parameters and make a call to the instance's *<parse> method., (*2)

Installation

composer require samyoul/php-pagination, (*3)

Pagination Instantiation and Rendering

``` php <?php, (*4)

// source inclusion
require_once APP . '/vendors/PHP-Pagination/Pagination.class.php';

// determine page (based on <_GET>)
$page = isset($_GET['page']) ? ((int) $_GET['page']) : 1;
$totalItems = 200;

// instantiate; set current page; set number of records
$pagination = new Pagination($page, $totalItems);

// grab rendered/parsed pagination markup
$markup = $pagination->parse();

```, (*5)

The Versions

05/09 2017

dev-master

9999999-dev

Simple and lightweight PHP pagination class that works with Twitter Bootstrap perfectly. Manages pagination variables through instantiable class, and markup rendering through view-like include file. http://web.onassar.com/blog/2012/06/09/github-project-php-pagination

  Sources   Download

The Requires

  • php ^5.3.3 || ^7.0