Command Palette

Search for a command to run...

position in category
#10

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:

  • ORM with lazy loading, entity lifecycle callbacks, and DQL for object-oriented queries
  • DBAL for schema introspection, migrations, and direct SQL when needed
  • Support for MySQL, PostgreSQL, SQLite, SQL Server, Oracle, and additional drivers
  • Doctrine Migrations and Data Fixtures for schema versioning and seed data
  • Event system and extensible architecture for custom behavior

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.

GitHub Repositories
40
-9.1%
Trending down this week
Removed in 4 repos