xengine/pagination

Library for building advanced and beautiful pagination output.

dev-master 2016-05-14 13:48 UTC

This package is auto-updated.

Last update: 2020-09-30 01:30:24 UTC


README

This class has written for building advanced and beautiful pagination output.

You can easily build your structure with just 2 lines.

For Example:

$pagination	= new \Sythdev\Pagination(100, 1, 20, 1, 3);
$output		= $pagination->build('somelink/page/','ul','li','ul-class','li-class', 'active');

echo $output;

alt text

Please check example.php file for more information.

Installation

Via composer: composer require sythdev/pagination

Manual: Download Pagination Class Then use "require" or "include" like this

require 'src/Pagination.php';