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

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

rudra/pagination
================

Rudra framework

v26.7.27(1mo ago)15392MPL-2.0PHPPHP ^8.3

Since Jun 1Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/Jagepard/Rudra-Pagination)[ Packagist](https://packagist.org/packages/rudra/pagination)[ RSS](/packages/rudra-pagination/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (8)Dependencies (4)Versions (13)Used By (2)

Rudra-Pagination | [API](https://github.com/Jagepard/Rudra-Pagination/blob/master/docs.md "Documentation API")
==============================================================================================================

[](#rudra-pagination--api)

A simple, lightweight, and transparent pagination component. True to the Rudra philosophy: no magic, no hidden dependencies, just pure math for calculating SQL offsets and page links.

Installation
------------

[](#installation)

```
composer require rudra/pagination
```

Usage
-----

[](#usage)

The component accepts three parameters: the current page number, items per page, and the total count of records. It safely casts string inputs to int, making it easy to use with $\_GET parameters.

```
