github.com/doctrine/orm ↗
Doctrine Object Relational Mapper (ORM)
Open this visualization on its own page →
Contributors
918
Lines of Code
57,208
From
2006-04-13
To
2022-03-09
About doctrine/orm
Doctrine ORM is a mature object-relational mapper for PHP 8.1 and later that enables transparent persistence of PHP objects to databases. Built on top of Doctrine DBAL, a powerful database abstraction layer, it allows developers to work with objects in their code while automatically handling database operations behind the scenes.
A key feature is Doctrine Query Language (DQL), a proprietary object-oriented SQL dialect inspired by Hibernate's HQL. DQL lets developers write database queries in an object-oriented style rather than raw SQL, providing a powerful alternative that maintains flexibility without code duplication. The project actively maintains multiple major versions, with branches for 4.0.x, 3.7.x, 3.6.x, 2.21.x, and 2.20.x, each with continuous integration and code coverage tracking.
The project targets PHP developers building database-driven applications who want to abstract away SQL while maintaining control over query execution. It's part of the larger Doctrine project and serves as a foundational component in many PHP frameworks and applications requiring sophisticated database mapping capabilities.