PaginationLinks

Yet another PHP class to generate pagination links in PHP.

Looking for a quick way to generate pagination links? Say no more! Though the code is well commented and there is a full example inside examples directory I would still write some basic documentation here.

Install via Composer <3

composer require mirazmac/pagination-links

PaginationLinks Options

Pagination links has these options to control its appearance/behavior.

Getting Started

To use PaginationLinks you must include it it your project.

require_once 'src/PaginationLinks.php';
use mirazmac\PaginationLinks;
$pagination = New PaginationLinks();
// Optionally, You can pass an array of options in constructor
$pagination = New PaginationLinks($OPTIONS);

Build the Pages

This is a MUST do to build the pages after constructing the class. Just like this: