PHPackages                             victor-codigo/doctrine-paginator-adapter - 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. victor-codigo/doctrine-paginator-adapter

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

victor-codigo/doctrine-paginator-adapter
========================================

A doctrine paginator

v1.0.0(1y ago)034GPL-3.0-onlyPHPPHP &gt;=8.1

Since Jan 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Victor-codigo/DoctrinePaginatorAdapter)[ Packagist](https://packagist.org/packages/victor-codigo/doctrine-paginator-adapter)[ RSS](/packages/victor-codigo-doctrine-paginator-adapter/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

DoctrinePaginatorAdapter
========================

[](#doctrinepaginatoradapter)

Description
-----------

[](#description)

PHP classes for doctrine pagination

Requeriments
------------

[](#requeriments)

### Usage

[](#usage)

1. [PHP &gt;= 8.1](https://www.php.net/)
2. [Doctrine &gt;= 2.20](https://www.doctrine-project.org/)

### Development

[](#development)

1. [PHP &gt;= 8.1](https://www.php.net/)
2. [Doctrine &gt;= 2.20](https://www.doctrine-project.org/)
3. [PHPUnit 11.5](https://phpunit.de/index.html)
4. [PHPStan](https://phpstan.org/)
5. [Php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer)

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

[](#installation)

Install with Composer:

```
    composer require victor-codigo/doctrine-paginator-adapter

```

Classes
-------

[](#classes)

**DoctrinePaginatorAdapter**: Class to create the pagination
**PaginatorInterface**: Interface for paginator adapter
**PaginatorException**: Page exceptions

Usage
-----

[](#usage-1)

### DoctrinePaginatorAdapter methods:

[](#doctrinepaginatoradapter-methods)

MethodDescriptionParamsReturn**\_\_construct**Creates a class instance1. **Doctrine\\ORM\\Tools\\Pagination\\Paginator or null**: doctrine paginator**createPaginator**Creates a new instance of DoctrinePaginatorAdapter1. **Doctrine\\ORM\\Query or Doctrine\\ORM\\QueryBuilder**: Query to create paginationDoctrinePaginatorAdapter&lt;TKey, TResult&gt;**getPageItems**Gets the number of items by pageint or null**setPagination**Sets the page to return, and the number of items per page1. **int**: Page number.
2. **int**: Number of items by pageDoctrinePaginatorAdapter&lt;TKey, TResult&gt;**getPagesRange**Get a range of pages1. **int**: First page.
2. **int**: Last page.
3. **int**: Number of items per page\\Generator**getAllPages**Gets all pages**int**: Number of items per page\\Generator**getPageCurrent**Gets current pageint**getPagesTotal**Gets the total number of pagesint**hasNext**Gets if there is another page after the current pageint**hasPrevious**Gets if there is a page before the current pageint**getPageNextNumber**Gets the number of the page afterint or null**getPagePreviousNumber**Gets the number of the page beforeint or null**getItemsTotal**
and
**count**Gets the total number of itemsint**getIterator**Gets an iterator of the current page\\Tarversable

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

536d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/60933176?v=4)[Víctor](/maintainers/Victor-codigo)[@Victor-codigo](https://github.com/Victor-codigo)

---

Top Contributors

[![Victor-codigo](https://avatars.githubusercontent.com/u/60933176?v=4)](https://github.com/Victor-codigo "Victor-codigo (3 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/victor-codigo-doctrine-paginator-adapter/health.svg)

```
[![Health](https://phpackages.com/badges/victor-codigo-doctrine-paginator-adapter/health.svg)](https://phpackages.com/packages/victor-codigo-doctrine-paginator-adapter)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M387](/packages/easycorp-easyadmin-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
