PHPackages                             ifedko/php-doctrine-dbal-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. [Database &amp; ORM](/categories/database)
4. /
5. ifedko/php-doctrine-dbal-pagination

ActiveLibrary[Database &amp; ORM](/categories/database)

ifedko/php-doctrine-dbal-pagination
===================================

Php pagination builder using doctrine dbal

3.1.0(2mo ago)10118.4k↓53.3%15[3 issues](https://github.com/ifedko/php-doctrine-dbal-pagination/issues)[1 PRs](https://github.com/ifedko/php-doctrine-dbal-pagination/pulls)MITPHPPHP ^7.4 || ^8.0CI failing

Since Aug 10Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/ifedko/php-doctrine-dbal-pagination)[ Packagist](https://packagist.org/packages/ifedko/php-doctrine-dbal-pagination)[ RSS](/packages/ifedko-php-doctrine-dbal-pagination/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)Dependencies (8)Versions (17)Used By (0)

PHP DOCTRINE DBAL pagination
============================

[](#php-doctrine-dbal-pagination)

The goal
--------

[](#the-goal)

Everyone faces the task when it's required to get list of items by customizable filters, to sort by customizable parameters and paginate these items. This library helps to do it.

Usage
-----

[](#usage)

### GETTING STARTED

[](#getting-started)

Examples work with table `users` (`id`, `is_active`, `name`, `created_at`).

At first create your builder. It's necessary to define base query there:

```
