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 1mo ago

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

28

—

LowBetter than 54% of packages

Maintenance42

Moderate activity, may be stable

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

484d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/72442680ed2aa145f8ecb5f5a8433a52cb33f324b3b1b1dcbec3051f8ea8f84a?d=identicon)[Victor-codigo](/maintainers/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

[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58523.9M36](/packages/scienta-doctrine-json-functions)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-bundle)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[pixelfederation/doctrine-resettable-em-bundle

Symfony bundle for decorating default entity managers using a resettable decorator.

20113.5k](/packages/pixelfederation-doctrine-resettable-em-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.

1022.4k](/packages/rcsofttech-audit-trail-bundle)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

813.1k](/packages/ahmed-bhs-doctrine-doctor)

PHPackages © 2026

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