PHPackages                             scrnr/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. scrnr/pagination

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

scrnr/pagination
================

Pagination library in PHP

v1.0.0(3y ago)09MITPHPPHP &gt;=8.0

Since Apr 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/scrnr/pagination-library-php)[ Packagist](https://packagist.org/packages/scrnr/pagination)[ Docs](https://github.com/scrnr/pagination-library-php)[ RSS](/packages/scrnr-pagination/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

PHP Pagination Library
======================

[](#php-pagination-library)

 [![Packagist PHP Version](https://camo.githubusercontent.com/a7a481c64faea48100e96f5506ebfc85611518a3ce651f4b1f12dd116687ad2a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f7363726e722f706167696e6174696f6e2f7068703f636f6c6f723d6f72616e6765266c6162656c3d504850266c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/a7a481c64faea48100e96f5506ebfc85611518a3ce651f4b1f12dd116687ad2a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f7363726e722f706167696e6174696f6e2f7068703f636f6c6f723d6f72616e6765266c6162656c3d504850266c6f676f3d706870266c6f676f436f6c6f723d7768697465) [![Packagist Version](https://camo.githubusercontent.com/961f7f1a2f8fda611cd1ad82a3738e076e58cae42f1620615f37796c521a80e4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7363726e722f706167696e6174696f6e3f6c6162656c3d5061636b6167697374266c6f676f3d7061636b6167697374266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/961f7f1a2f8fda611cd1ad82a3738e076e58cae42f1620615f37796c521a80e4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7363726e722f706167696e6174696f6e3f6c6162656c3d5061636b6167697374266c6f676f3d7061636b6167697374266c6f676f436f6c6f723d7768697465) [![Packagist License](https://camo.githubusercontent.com/e89bef069e1d1a2bd92e18f4a2698906ec2ce4f90769a246708f0ec8c10736ea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7363726e722f706167696e6174696f6e3f6c6162656c3d4c4943454e5345266c6f676f3d7265616374686f6f6b666f726d266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/e89bef069e1d1a2bd92e18f4a2698906ec2ce4f90769a246708f0ec8c10736ea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7363726e722f706167696e6174696f6e3f6c6162656c3d4c4943454e5345266c6f676f3d7265616374686f6f6b666f726d266c6f676f436f6c6f723d7768697465)

Table Of Contents
-----------------

[](#table-of-contents)

- [Description](#description)
- [Installation](#installation)
- [Usage](#usage)
- [Customization Pagination Settings](#customization)
- [Conclusion](#conclusion)
- [Author](#author)
- [License](#license)

Description [🔝](#table-of-contents)
-----------------------------------

[](#description-top)

This is a simple and flexible PHP library for creating pagination in your web applications. It allows you to easily paginate large sets of data and display them in smaller, more manageable chunks.

Installation [🔝](#table-of-contents)
------------------------------------

[](#installation-top)

You can install the library using [Composer](https://getcomposer.org/). Simply add the following lines to your `composer.json` file and run `composer install`:

```
"require": {
  "scrnr/pagination": "*"
}
```

Or you can use this **command**:

```
composer require scrnr/pagination
```

Usage [🔝](#table-of-contents)
-----------------------------

[](#usage-top)

To use the pagination library in your application, you need to include the [Composer](https://getcomposer.org/) autoload file and create a new instance. After creating an instance, you can call the `getPagination()` method, passing an ***optional*** array of options as a parameter. This method to generate a string representation of the pagination links.

### Here is an example of usage

[](#here-is-an-example-of-usage)

```
