Skip to content

mazanax/paginator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimum PHP Version Latest Stable Version Build Status codecov

Paginator

Simple pagination library for your site

Installation

composer require mazanax/paginator

Usage

<?php

$pagination = new Pagination(['separator' => '|', 'on_page' => 5, 'section_size' => 5]);
$pagination->getPages(4, 100); // will returns [1, 2, 3, 4, 5, '|', 20]