Doctrine 2 logo

Doctrine 2

An object-relational mapper (ORM) for PHP 5.3.2+ that provides transparent persistence for PHP objects
279
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
202 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.
MySQL
The MySQL software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software.
PostgreSQL
PostgreSQL is an advanced object-relational database management system that supports an extended subset of the SQL standard, including transactions, foreign keys, subqueries, triggers, user-defined types and functions.
MongoDB
MongoDB stores data in JSON-like documents that can vary in structure, offering a dynamic, flexible schema. MongoDB was also designed for high availability and scalability, with built-in replication and auto-sharding.
See all alternatives

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