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?

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

190 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.
Entity Framework
It is an object-relational mapper that enables .NET developers to work with relational data using domain-specific objects. It eliminates the need for most of the data-access code that developers usually need to write.
SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL.
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.
See all alternatives

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