PHPackages                             alextartan/doctrine-paginator-ramsey-binary-uuid - 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. alextartan/doctrine-paginator-ramsey-binary-uuid

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

alextartan/doctrine-paginator-ramsey-binary-uuid
================================================

An extension of DoctrinePaginator to make it work when ids are binary uuids generated with ramsey/uuid

1.0.3(6y ago)02.6kMITPHPPHP ^7.2

Since Aug 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/alextartan/doctrine-paginator-ramsey-binary-uuid)[ Packagist](https://packagist.org/packages/alextartan/doctrine-paginator-ramsey-binary-uuid)[ RSS](/packages/alextartan-doctrine-paginator-ramsey-binary-uuid/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (11)Versions (5)Used By (0)

Paginator for Doctrine ORM that supports `uuid_binary` ids.
===========================================================

[](#paginator-for-doctrine-orm-that-supports-uuid_binary-ids)

Doctrine's Paginator fails to return objects if their id is of `uuid_binary` type.

This happens because the database won't match a `BINARY(16)` to a string.

The solution was to get those ids (which were converted by `UuidInterface::__toString`) and return them with `UuidInterface::getBytes`. This allows for a proper match at the database level.

Current build status
====================

[](#current-build-status)

[![Build Status](https://camo.githubusercontent.com/1fe0a80b5a096265b40f4bd71b0cc874ce7c35e5a685cd56bd017a14b194ec76/68747470733a2f2f7472617669732d63692e6f72672f616c657874617274616e2f646f637472696e652d706167696e61746f722d72616d7365792d62696e6172792d757569642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/alextartan/doctrine-paginator-ramsey-binary-uuid)[![Coverage Status](https://camo.githubusercontent.com/0384aee4706b3b56049b97144ef95a3a17b38cadfc70406883e1f18356cc6572/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f616c657874617274616e2f646f637472696e652d706167696e61746f722d72616d7365792d62696e6172792d757569642f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/alextartan/doctrine-paginator-ramsey-binary-uuid?branch=master)[![Mutation testing badge](https://camo.githubusercontent.com/68f366052f6b795216d357897345205d562365b0becd78b8e7b2ad7e25fd0b39/68747470733a2f2f62616467652e737472796b65722d6d757461746f722e696f2f6769746875622e636f6d2f616c657874617274616e2f646f637472696e652d706167696e61746f722d72616d7365792d62696e6172792d757569642f6d6173746572)](https://stryker-mutator.github.io)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/90603b71ac12a3d3884f566cb073884ac529601d60ce1dcbd0e2b173724b9e96/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616c657874617274616e2f646f637472696e652d706167696e61746f722d72616d7365792d62696e6172792d757569642f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/alextartan/doctrine-paginator-ramsey-binary-uuid/?branch=master)[![Downloads](https://camo.githubusercontent.com/f22a7d296d33ee1878538b9d720bb67a12bc85ee17352fbd527327366af20670/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64796e616d69632f6a736f6e2e7376673f75726c3d68747470733a2f2f7265706f2e7061636b61676973742e6f72672f7061636b616765732f616c657874617274616e2f646f637472696e652d706167696e61746f722d72616d7365792d62696e6172792d757569642e6a736f6e266c6162656c3d446f776e6c6f6164732671756572793d242e7061636b6167652e646f776e6c6f6164732e746f74616c26636f6c6f72423d6f72616e6765)](https://packagist.org/packages/alextartan/doctrine-paginator-ramsey-binary-uuid)

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

[](#installation)

```
composer require alextartan/doctrine-paginator-ramsey-binary-uuid
```

Usage
-----

[](#usage)

```
$repo = $this->em->getRepository(SomeEntity::class);
$query = $repo->createQueryBuilder('se')
              ->setMaxResults(2)
              // more stuff here
              ->getQuery();

$p = new BinaryUuidSafePaginator($query);
```

Versioning
----------

[](#versioning)

This library adheres to [semver](https://semver.org/)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Every ~55 days

Total

4

Last Release

2284d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eefc8c3538aee268c9818b990c50ddf45615ec922209d1897a8ae2943359c746?d=identicon)[alextartan](/maintainers/alextartan)

---

Top Contributors

[![alextartan](https://avatars.githubusercontent.com/u/1787996?v=4)](https://github.com/alextartan "alextartan (17 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/alextartan-doctrine-paginator-ramsey-binary-uuid/health.svg)

```
[![Health](https://phpackages.com/badges/alextartan-doctrine-paginator-ramsey-binary-uuid/health.svg)](https://phpackages.com/packages/alextartan-doctrine-paginator-ramsey-binary-uuid)
```

###  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)[forkcms/forkcms

Fork is an open source CMS that will rock your world.

1.2k44.5k](/packages/forkcms-forkcms)[pixelfederation/doctrine-resettable-em-bundle

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

20113.5k](/packages/pixelfederation-doctrine-resettable-em-bundle)[baraja-core/doctrine-fulltext-search

Entity search engine, extremely easy to use.

2070.6k3](/packages/baraja-core-doctrine-fulltext-search)

PHPackages © 2026

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