/php_paginator

a simple class for showing pagination links without loosing parameters on query string

Primary LanguagePHP

php_paginator

A simple class for showing pagination links without loosing parameters on query string



remember:
This class does not contains any possibilities for data limitations! (like posts, products or whatever you want to paginate), it only creates pagination links and shows the pagination links in a nice html markup!



how to use:
Just include class and use this small lines of code:

`<?php

$total_count = 100; // number of items that should be paginated
$per_page_count = 10; // number of items that should be displayed on each page

$paginator = new Paginator($total_count, $per_page_count);
$paginator->showLinks();

?>`



requirements:
bootstrap > 4.0
php > 5.6