PHPackages                             sugiphp/pagination - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sugiphp/pagination

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sugiphp/pagination
==================

SugiPHP Pagination Component

32312[1 PRs](https://github.com/SugiPHP/Pagination/pulls)PHP

Since Feb 23Pushed 10y ago1 watchersCompare

[ Source](https://github.com/SugiPHP/Pagination)[ Packagist](https://packagist.org/packages/sugiphp/pagination)[ RSS](/packages/sugiphp-pagination/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Pagination
==========

[](#pagination)

[![Build Status](https://camo.githubusercontent.com/1175fcf0572105e840442c4577c267d9e13b5b85d3a1a51028e0f998bda7e1da/68747470733a2f2f7472617669732d63692e6f72672f537567695048502f506167696e6174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/SugiPHP/Pagination)[![SensioLabsInsight](https://camo.githubusercontent.com/47e07ceee27d02c00bd3ebc0c0c63606ad478ba851c245862216f852038afedb/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f36366233623136352d353033392d343831312d396333372d6236616465366662393239382f6d696e692e706e67)](https://insight.sensiolabs.com/projects/66b3b165-5039-4811-9c37-b6ade6fb9298)

SugiPHP Pagination is a simple to use class that provides pagination links for your app. You can customize the look and feel of the pages links by writing a custom renderer or use one of the available ones like Twitter's Bootstrap or extend them.

Install
-------

[](#install)

If you are using [composer](https://getcomposer.org/) type in the shell, otherwise you have to download Pagination and Exception classes

```
composer require sugiphp/pagination
```

Basic usage
-----------

[](#basic-usage)

Pagination class by it's own does not have any renders, instead it's primary goal is to give an array of items (links). This can be done easily:

```
