Object-Relational-Mapper for PHP

database, orm



Master 2.8 2.7
Build status Build status Build status
Coverage Status Coverage Status Coverage Status
⚠️ You are browsing the code of upcoming Doctrine 3.0.
Things changed a lot here and major code changes should be expected. If you are rather looking for a stable version, refer to the 2.7 branch for the current stable release or 2.8 branch for the upcoming release. If you are submitting a pull request, please see the Which branch should I choose? section below.

Doctrine 3 is an object-relational mapper (ORM) for PHP 7.2+ 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.

Which branch should I choose?

Doctrine ORM for enterprise

Available as part of the Tidelift Subscription.

The maintainers of Doctrine ORM and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.

More resources: