Search for a command to run...
Object-relational mapper and database abstraction layer for PHP that maps objects to relational tables and provides a unified interface across MySQL, PostgreSQL, SQLite, and other databases. The ORM handles mapping, lazy loading, and change tracking while the DBAL underpins it with schema introspection, query building, and transactional control.
Doctrine has been in production use since 2006 and powers many major PHP applications. Symfony, Drupal, Laravel, API Platform, PrestaShop, Shopware, Sylius, and TYPO3 integrate or rely on its libraries. The project stands out by offering both high-level ORM workflows and low-level DBAL access for raw queries and schema management within the same codebase.
Key capabilities:
Common uses include web applications built with Symfony or Laravel that need type-safe database access and migrations, API backends that model domain entities as PHP objects, and projects requiring both ORM convenience and raw query performance. Developers working across frameworks benefit from consistent patterns and the ability to drop down to DBAL for complex queries or bulk operations.