PHPackages                             4slv/doctrine2 - 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. 4slv/doctrine2

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

4slv/doctrine2
==============

Object-Relational-Mapper for PHP

v2.5.14(8y ago)03.4kMITPHPPHP &gt;=5.4

Since Nov 21Pushed 8y agoCompare

[ Source](https://github.com/4slv/doctrine2)[ Packagist](https://packagist.org/packages/4slv/doctrine2)[ Docs](http://www.doctrine-project.org)[ RSS](/packages/4slv-doctrine2/feed)WikiDiscussions 2.5 Synced 2w ago

READMEChangelogDependencies (8)Versions (76)Used By (0)

[Master](https://travis-ci.org/doctrine/doctrine2)[2.4](https://github.com/doctrine/doctrine2/tree/2.4)[2.3](https://github.com/doctrine/doctrine2/tree/2.3)[2.2](https://github.com/doctrine/doctrine2/tree/2.2)[2.1](https://github.com/doctrine/doctrine2/tree/2.1.x)[![Build status](https://camo.githubusercontent.com/749bbcd19d3ee3108ea8ebeb64533651732fadc9d13bf2975038c1988a1e0c20/68747470733a2f2f7472617669732d63692e6f72672f646f637472696e652f646f637472696e65322e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/doctrine/doctrine2)[![Build status](https://camo.githubusercontent.com/6c55eb2f8bba63a13b278909f0a79620afc0d1ac076ef1b8b16e63f2eea6c736/68747470733a2f2f7472617669732d63692e6f72672f646f637472696e652f646f637472696e65322e7376673f6272616e63683d322e34)](https://github.com/doctrine/doctrine2/tree/2.4)[![Build status](https://camo.githubusercontent.com/b2c92592a07c77521981b594565561a21cae50222457627813490681f68ff52d/68747470733a2f2f7472617669732d63692e6f72672f646f637472696e652f646f637472696e65322e7376673f6272616e63683d322e33)](https://github.com/doctrine/doctrine2/tree/2.3)[![Build status](https://camo.githubusercontent.com/44fdd6b9b79bc2d2c72e9d58bccb84153540c7cd49c435289c9d736308384da4/68747470733a2f2f7472617669732d63692e6f72672f646f637472696e652f646f637472696e65322e7376673f6272616e63683d322e32)](https://github.com/doctrine/doctrine2/tree/2.2)[![Build status](https://camo.githubusercontent.com/b5e1a3a1ac894e461c9287b0610748d99ae673eee8b4516db3294b9bdf5c7963/68747470733a2f2f7472617669732d63692e6f72672f646f637472696e652f646f637472696e65322e7376673f6272616e63683d322e312e78)](https://github.com/doctrine/doctrine2/tree/2.1.x)[![Coverage Status](https://camo.githubusercontent.com/6fde2c11ec07dd9883b532fb045368548b41ed71b7e0fe2b47aec9381c7e904c/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f646f637472696e652f646f637472696e65322f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/doctrine/doctrine2?branch=master)Doctrine 2 is an object-relational mapper (ORM) for PHP 5.4+ 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](http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/index.html)
- [Issue Tracker](http://www.doctrine-project.org/jira/browse/DDC)
- [Downloads](http://github.com/doctrine/doctrine2/downloads)

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor2

2 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 ~35 days

Recently: every ~21 days

Total

63

Last Release

3120d ago

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

v2.5.0-alpha1PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/690ec49c290d430acec8fe69ad6e9785419d2426a71d1b1172d9d9b6cc9f70f0?d=identicon)[4slv](/maintainers/4slv)

---

Top Contributors

[![beberlei](https://avatars.githubusercontent.com/u/26936?v=4)](https://github.com/beberlei "beberlei (1671 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (965 commits)")[![guilhermeblanco](https://avatars.githubusercontent.com/u/208883?v=4)](https://github.com/guilhermeblanco "guilhermeblanco (545 commits)")[![FabioBatSilva](https://avatars.githubusercontent.com/u/588172?v=4)](https://github.com/FabioBatSilva "FabioBatSilva (313 commits)")[![jwage](https://avatars.githubusercontent.com/u/97422?v=4)](https://github.com/jwage "jwage (117 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 (64 commits)")[![bakura10](https://avatars.githubusercontent.com/u/1198915?v=4)](https://github.com/bakura10 "bakura10 (45 commits)")[![deeky666](https://avatars.githubusercontent.com/u/1411514?v=4)](https://github.com/deeky666 "deeky666 (37 commits)")[![schmittjoh](https://avatars.githubusercontent.com/u/197017?v=4)](https://github.com/schmittjoh "schmittjoh (35 commits)")[![mnapoli](https://avatars.githubusercontent.com/u/720328?v=4)](https://github.com/mnapoli "mnapoli (27 commits)")[![Shurakai](https://avatars.githubusercontent.com/u/265444?v=4)](https://github.com/Shurakai "Shurakai (24 commits)")[![sandermarechal](https://avatars.githubusercontent.com/u/145240?v=4)](https://github.com/sandermarechal "sandermarechal (22 commits)")[![lcobucci](https://avatars.githubusercontent.com/u/201963?v=4)](https://github.com/lcobucci "lcobucci (22 commits)")[![flip111](https://avatars.githubusercontent.com/u/2244480?v=4)](https://github.com/flip111 "flip111 (20 commits)")[![encoder32](https://avatars.githubusercontent.com/u/2362210?v=4)](https://github.com/encoder32 "encoder32 (19 commits)")[![velovint](https://avatars.githubusercontent.com/u/184136?v=4)](https://github.com/velovint "velovint (18 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (17 commits)")[![BenMorel](https://avatars.githubusercontent.com/u/1952838?v=4)](https://github.com/BenMorel "BenMorel (17 commits)")

---

Tags

databaseorm

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/4slv-doctrine2/health.svg)

```
[![Health](https://phpackages.com/badges/4slv-doctrine2/health.svg)](https://phpackages.com/packages/4slv-doctrine2)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k295.3M7.2k](/packages/doctrine-orm)[sylius/sylius

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

8.5k5.8M717](/packages/sylius-sylius)[sulu/sulu

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

1.3k1.4M196](/packages/sulu-sulu)[ec-cube/ec-cube

EC-CUBE EC open platform.

78727.2k1](/packages/ec-cube-ec-cube)[api-platform/doctrine-common

Common files used by api-platform/doctrine-orm and api-platform/doctrine-odm

243.9M41](/packages/api-platform-doctrine-common)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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