Doctrine 2 logo

Doctrine 2

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

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?

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

Developers
199 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
14
Great abstraction, easy to use, good docs
10
Object-Oriented
7
Easy setup

Doctrine 2 Alternatives & Comparisons

What are some alternatives to Doctrine 2?
Propel
Propel provides a GPU-backed numpy-like infrastructure for scientific computing in JavaScript.
Hibernate
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
SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL.
Prisma
Prisma is an open-source database toolkit. It replaces traditional ORMs and makes database access easy with an auto-generated query builder for TypeScript & Node.js.
See all alternatives

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