linice/pagination

There is no license information available for the latest version (v1.0.1) of this package.

Php pagination, visited by direct view page(not ajax), and use bootstrap css.

Maintainers

Package info

github.com/linice/pagination

pkg:composer/linice/pagination

Statistics

Installs: 109

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.1 2016-04-01 13:41 UTC

This package is not auto-updated.

Last update: 2026-03-05 02:33:57 UTC


README

Pagination contains an instantiable class, along with a view which renders the pagination markup.

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 * method.

Pagination using bootstrap theme(css), so just include bootstrap.css in your view page.

` php <?php // source inclusion require_once PRJ_PATH . '/vendor/pagination/Pagination.class.php';

use Pagination;

// determine page (based on <_GET>) $page = isset($_GET['page']) ? ((int) $_GET['page']) : 1; // instantiate; set current page; set number of records $pagination = new Pagination(); $pagination->setCurrent($page); $pagination->setRPP(15); $pagination->setTotal(200); // grab rendered/parsed pagination markup $pager = $pagination->parse();

`