Doctrine 2 logo

Doctrine 2

An object-relational mapper (ORM) for PHP 5.3.2+ that provides transparent persistence for PHP objects
+ 1

What is Doctrine 2?

Doctrine 2 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 Hibernates HQL.
Doctrine 2 is a tool in the Object Relational Mapper (ORM) category of a tech stack.

Who uses Doctrine 2?

59 companies reportedly use Doctrine 2 in their tech stacks, including Vend, WUZZUF, and Q:MARKETING AG.

186 developers on StackShare have stated that they use Doctrine 2.

Doctrine 2 Integrations

PHP, Stream, PHPStan, Bolt CMS, and Sylius are some of the popular tools that integrate with Doctrine 2. Here's a list of all 5 tools that integrate with Doctrine 2.
Pros of Doctrine 2
Great abstraction, easy to use, good docs
Easy setup

Doctrine 2 Alternatives & Comparisons

What are some alternatives to Doctrine 2?
Propel provides a GPU-backed numpy-like infrastructure for scientific computing in JavaScript.
Hibernate is a suite of open source projects around domain models. The flagship project is Hibernate ORM, the Object Relational Mapper.
Sequelize is a promise-based ORM for Node.js and io.js. It supports the dialects PostgreSQL, MySQL, MariaDB, SQLite and MSSQL and features solid transaction support, relations, read replication and more.
SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL.
Entity Framework Core
It is a lightweight, extensible, open source and cross-platform version of the popular Entity Framework data access technology. It can serve as an object-relational mapper (O/RM), enabling .NET developers to work with a database using .NET objects, and eliminating the need for most of the data-access code they usually need to write.
See all alternatives

Doctrine 2's Followers
199 developers follow Doctrine 2 to keep up with related blogs and decisions.