PHPackages                             doctrine/orm - 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. doctrine/orm

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

doctrine/orm
============

Object-Relational-Mapper for PHP

3.6.2(3mo ago)10.2k285.3M—2.6%2.5k[1.3k issues](https://github.com/doctrine/orm/issues)[24 PRs](https://github.com/doctrine/orm/pulls)20MITPHPPHP ^8.1CI passing

Since Nov 21Pushed 3d ago241 watchersCompare

[ Source](https://github.com/doctrine/orm)[ Packagist](https://packagist.org/packages/doctrine/orm)[ Docs](https://www.doctrine-project.org/projects/orm.html)[ RSS](/packages/doctrine-orm/feed)WikiDiscussions 3.6.x Synced 1mo ago

READMEChangelog (10)Dependencies (20)Versions (192)Used By (20)Security (3)

[4.0.x](https://github.com/doctrine/orm/tree/4.0.x)[3.7.x](https://github.com/doctrine/orm/tree/3.7.x)[3.6.x](https://github.com/doctrine/orm/tree/3.6.x)[2.21.x](https://github.com/doctrine/orm/tree/2.21.x)[2.20.x](https://github.com/doctrine/orm/tree/2.20.x)[![Build status](https://github.com/doctrine/orm/actions/workflows/continuous-integration.yml/badge.svg?branch=4.0.x)](https://github.com/doctrine/orm/actions/workflows/continuous-integration.yml?query=branch%3A4.0.x)[![Build status](https://github.com/doctrine/orm/actions/workflows/continuous-integration.yml/badge.svg?branch=3.7.x)](https://github.com/doctrine/orm/actions/workflows/continuous-integration.yml?query=branch%3A3.7.x)[![Build status](https://github.com/doctrine/orm/actions/workflows/continuous-integration.yml/badge.svg?branch=3.6.x)](https://github.com/doctrine/orm/actions/workflows/continuous-integration.yml?query=branch%3A3.6.x)[![Build status](https://github.com/doctrine/orm/actions/workflows/continuous-integration.yml/badge.svg?branch=2.21.x)](https://github.com/doctrine/orm/actions/workflows/continuous-integration.yml?query=branch%3A2.21.x)[![Build status](https://github.com/doctrine/orm/actions/workflows/continuous-integration.yml/badge.svg?branch=2.20.x)](https://github.com/doctrine/orm/actions/workflows/continuous-integration.yml?query=branch%3A2.20.x)[![Coverage Status](https://camo.githubusercontent.com/7c717e41af694a2643989005e1f6d9f9dce665d2997ec76f522c4cf302da7834/68747470733a2f2f636f6465636f762e696f2f67682f646f637472696e652f6f726d2f6272616e63682f342e302e782f67726170682f62616467652e737667)](https://codecov.io/gh/doctrine/orm/branch/4.0.x)[![Coverage Status](https://camo.githubusercontent.com/3ab1f3abfaac2b021f2e8030b9cbc947d81c4cf9c1c661ca33bd2d6461ba3806/68747470733a2f2f636f6465636f762e696f2f67682f646f637472696e652f6f726d2f6272616e63682f332e372e782f67726170682f62616467652e737667)](https://codecov.io/gh/doctrine/orm/branch/3.7.x)[![Coverage Status](https://camo.githubusercontent.com/d2fdc83d7c66d7fe102f35d8237a28ecd98c828a78cd7a09b19696cc780a2d9d/68747470733a2f2f636f6465636f762e696f2f67682f646f637472696e652f6f726d2f6272616e63682f332e362e782f67726170682f62616467652e737667)](https://codecov.io/gh/doctrine/orm/branch/3.6.x)[![Coverage Status](https://camo.githubusercontent.com/05c9d39598648755e1896e8b47d3a3514fa7fed5a94fb9daaeaadb95228c7bd1/68747470733a2f2f636f6465636f762e696f2f67682f646f637472696e652f6f726d2f6272616e63682f322e32312e782f67726170682f62616467652e737667)](https://codecov.io/gh/doctrine/orm/branch/2.21.x)[![Coverage Status](https://camo.githubusercontent.com/e558e9cb39cefca0999d43e48e388cfcf08f0043f0513adcfbedb05072cff025/68747470733a2f2f636f6465636f762e696f2f67682f646f637472696e652f6f726d2f6272616e63682f322e32302e782f67726170682f62616467652e737667)](https://codecov.io/gh/doctrine/orm/branch/2.20.x)Doctrine ORM is an object-relational mapper for PHP 8.1+ that provides transparent persistence for PHP objects. It sits on top of a powerful database abstraction layer (DBAL). One of its key features is the option to write database queries in a proprietary object oriented SQL dialect called Doctrine Query Language (DQL), inspired by Hibernate's HQL. This provides developers with a powerful alternative to SQL that maintains flexibility without requiring unnecessary code duplication.

More resources:
---------------

[](#more-resources)

- [Website](http://www.doctrine-project.org)
- [Documentation](https://www.doctrine-project.org/projects/doctrine-orm/en/stable/index.html)

###  Health Score

87

—

ExcellentBetter than 100% of packages

Maintenance88

Actively maintained with recent releases

Popularity90

Widely adopted with strong download metrics

Community72

Healthy contributor diversity

Maturity91

Battle-tested with a long release history

 Bus Factor3

3 contributors hold 50%+ of commits

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 ~27 days

Recently: every ~13 days

Total

190

Last Release

54d ago

Major Versions

2.20.7 → 3.5.32025-10-27

2.20.8 → 3.5.42025-11-10

2.20.9 → 3.5.82025-11-29

2.21.x-dev → 3.6.22026-01-30

3.6.2 → 4.0.x-dev2026-03-12

PHP version history (9 changes)2.1.3PHP &gt;=5.3.2

v2.5.0-alpha1PHP &gt;=5.4

v2.6.0PHP ^7.1

2.8.0PHP ^7.2|^8.0

2.9.0PHP ^7.1|^8.0

2.9.4PHP ^7.1 ||^8.0

2.11.0PHP ^7.1 || ^8.0

3.0.0-beta1PHP ^8.1

4.0.x-devPHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/892698bb1d3f6dae0e3a44abe3e26920ddb4eb000c6c583c87b4db5e5027e166?d=identicon)[beberlei](/maintainers/beberlei)

![](https://www.gravatar.com/avatar/3c4b569aa557436333fb02f55dfc0dacd6cb54c29820de24d9ad8a61cabb7716?d=identicon)[jwage](/maintainers/jwage)

---

Top Contributors

[![greg0ire](https://avatars.githubusercontent.com/u/657779?v=4)](https://github.com/greg0ire "greg0ire (1989 commits)")[![beberlei](https://avatars.githubusercontent.com/u/26936?v=4)](https://github.com/beberlei "beberlei (1883 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (1397 commits)")[![derrabus](https://avatars.githubusercontent.com/u/1506493?v=4)](https://github.com/derrabus "derrabus (738 commits)")[![guilhermeblanco](https://avatars.githubusercontent.com/u/208883?v=4)](https://github.com/guilhermeblanco "guilhermeblanco (592 commits)")[![FabioBatSilva](https://avatars.githubusercontent.com/u/588172?v=4)](https://github.com/FabioBatSilva "FabioBatSilva (314 commits)")[![lcobucci](https://avatars.githubusercontent.com/u/201963?v=4)](https://github.com/lcobucci "lcobucci (248 commits)")[![mpdude](https://avatars.githubusercontent.com/u/1202333?v=4)](https://github.com/mpdude "mpdude (136 commits)")[![jwage](https://avatars.githubusercontent.com/u/97422?v=4)](https://github.com/jwage "jwage (128 commits)")[![romanb](https://avatars.githubusercontent.com/u/177309?v=4)](https://github.com/romanb "romanb (108 commits)")[![asm89](https://avatars.githubusercontent.com/u/657357?v=4)](https://github.com/asm89 "asm89 (104 commits)")[![goetas](https://avatars.githubusercontent.com/u/776743?v=4)](https://github.com/goetas "goetas (78 commits)")[![morozov](https://avatars.githubusercontent.com/u/59683?v=4)](https://github.com/morozov "morozov (65 commits)")[![ThomasLandauer](https://avatars.githubusercontent.com/u/1054469?v=4)](https://github.com/ThomasLandauer "ThomasLandauer (57 commits)")[![Majkl578](https://avatars.githubusercontent.com/u/144181?v=4)](https://github.com/Majkl578 "Majkl578 (56 commits)")[![deeky666](https://avatars.githubusercontent.com/u/1411514?v=4)](https://github.com/deeky666 "deeky666 (50 commits)")[![bakura10](https://avatars.githubusercontent.com/u/1198915?v=4)](https://github.com/bakura10 "bakura10 (45 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (40 commits)")[![SenseException](https://avatars.githubusercontent.com/u/859964?v=4)](https://github.com/SenseException "SenseException (35 commits)")[![Jean85](https://avatars.githubusercontent.com/u/6729988?v=4)](https://github.com/Jean85 "Jean85 (35 commits)")

---

Tags

hacktoberfestdatabaseorm

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/doctrine-orm/health.svg)

```
[![Health](https://phpackages.com/badges/doctrine-orm/health.svg)](https://phpackages.com/packages/doctrine-orm)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[doctrine/doctrine-bundle

Symfony DoctrineBundle

4.8k241.3M3.3k](/packages/doctrine-doctrine-bundle)[doctrine/migrations

PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer (DBAL) for versioning your database schema and easily deploying changes to it. It is a very easy to use and a powerful tool.

4.8k204.8M440](/packages/doctrine-migrations)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)

PHPackages © 2026

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