# Doctrine ORM

> Object-relational mapper for PHP

Source: https://talira.ai/catalog/doctrine-orm-vn7a6r26
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / databases / orm](https://talira.ai/categories/libraries/databases/orm), [languages / php](https://talira.ai/categories/languages/php)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Doctrine Project](https://talira.ai/orgs/doctrine-project.md)

Doctrine ORM maps PHP objects to relational database tables, built on Doctrine DBAL, its database abstraction layer. Entities are plain PHP classes described with attributes or XML, a unit of work tracks changes and writes them in one transaction, and DQL, an object query language, and a query builder run queries against your entities. Doctrine Bundle integrates it with Symfony, a module does the same for Laminas, and Doctrine Migrations and Data Fixtures handle schema changes and test data. It's the Doctrine Project's main library, MIT licensed, with 3.8 the stable series and 2.20 on security fixes.

## Links

- Website: https://www.doctrine-project.org/projects/orm.html
- GitHub: https://github.com/doctrine/orm
- Docs: https://www.doctrine-project.org/projects/doctrine-orm/en/current/index.html

## Problems it solves

- map my PHP classes to database tables without writing SQL for every query
- use an ORM in my Symfony app
- switch databases in a PHP app without rewriting queries

## Features

- entities as plain PHP classes mapped with attributes or XML
- unit of work that writes changes in one transaction
- DQL object query language and a query builder
- built on Doctrine DBAL's database abstraction layer
- Symfony integration through Doctrine Bundle, and a Laminas module

## Trust

Overall: 0.71 out of 1.
Signals: maintenance 1.00, adoption 0.80, momentum 0.52, community 1.00, backing 0.30, extensibility 0.00.

- last commit 4 days ago
- 219 commits in the last 90 days
- latest release 3.8.0 15 days ago
- 10.2k GitHub stars
- 1148 contributors
- backed by Doctrine Project

## Sources

[^1]: https://github.com/doctrine/orm/blob/3.8.x/LICENSE (checked 26 Nov 2026)
