Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Laravel
  3. Laravel Doctrine

Laravel Doctrine

MITPHP3.3.3

A Laravel integration library that brings Doctrine ORM's powerful data mapping and querying capabilities to Laravel applications.

GitHubGitHub
837 stars182 forks0 contributors

What is Laravel Doctrine?

Laravel Doctrine ORM is an integration library that connects the Doctrine Object-Relational Mapper with the Laravel PHP framework. It enables Laravel developers to use Doctrine's powerful data mapping, querying, and entity management features as an alternative to Laravel's built-in Eloquent ORM. The library provides seamless integration through Laravel's service container and configuration system.

Target Audience

Laravel developers who need advanced ORM capabilities beyond Eloquent, particularly those working with complex data models, legacy databases, or requiring Doctrine's specific features like DQL or fine-grained entity management.

Value Proposition

Developers choose Laravel Doctrine ORM to leverage Doctrine's enterprise-grade persistence layer within Laravel's ecosystem, gaining powerful querying with DQL, explicit data mapping patterns, and compatibility with complex database schemas while maintaining Laravel's development workflow.

Overview

An integration library for Laravel and Doctrine ORM

Use Cases

Best For

  • Laravel projects requiring complex database relationships and advanced querying
  • Migrating existing Doctrine-based applications to Laravel
  • Teams familiar with Doctrine who want to use Laravel as their framework
  • Applications needing explicit data mapper patterns instead of active record
  • Projects that require DQL (Doctrine Query Language) for complex database operations
  • Integrating Laravel with legacy databases using Doctrine's mapping capabilities

Not Ideal For

  • Projects that rely heavily on Laravel's Eloquent conventions and quick prototyping without advanced ORM needs
  • Teams with no prior Doctrine experience who prefer Laravel's built-in, simpler active record pattern
  • Applications with simple CRUD operations where Eloquent's productivity features are sufficient
  • Environments where minimizing dependencies and setup complexity is a higher priority than advanced data mapping

Pros & Cons

Pros

Seamless Laravel Integration

Auto-registers Doctrine services through Laravel's service container with autodiscovery support, making it feel native to the Laravel ecosystem as highlighted in the README installation steps.

Advanced ORM Capabilities

Provides full access to Doctrine's entity management, DQL, and complex mapping features, enabling enterprise-grade data persistence patterns beyond Eloquent's scope.

Flexible Configuration

Includes Laravel Artisan commands to publish and customize Doctrine configuration files, allowing developers to tailor the ORM setup to project-specific needs.

Strong Version Support

Supports multiple versions of Laravel, Doctrine, and PHP across releases, ensuring compatibility with a wide range of project environments as detailed in the versions section.

Cons

Steep Learning Curve

Requires developers to learn Doctrine's concepts and syntax, which adds complexity over Laravel's more intuitive Eloquent ORM, especially for teams without prior Doctrine experience.

Additional Setup Overhead

Introduces extra configuration steps and dependencies compared to Eloquent, increasing initial setup time and maintenance burden, as seen in the need to publish configs and manage Doctrine-specific tooling.

Breaking Change Risk

Major version upgrades (e.g., from v2 to v3) require careful migration due to breaking changes, as indicated by the README's upgrade guide, which can disrupt ongoing development.

Frequently Asked Questions

Quick Stats

Stars837
Forks182
Contributors0
Open Issues5
Last commit20 days ago
CreatedSince 2015

Tags

#data-mapper#orm#doctrine-orm#laravel#laravel-integration#doctrine#entity-management#database-abstraction#php-framework#database-tooling

Built With

P
PHP
L
Laravel
D
Doctrine ORM

Included in

Laravel13.0k
Auto-fetched 5 hours ago

Related Projects

LiveWireLiveWire

A full-stack framework for Laravel that takes the pain out of building dynamic UIs.

Stars23,505
Forks1,732
Last commit1 day ago
Debug BarDebug Bar

Debugbar for Laravel (Integrates PHP Debug Bar)

Stars19,195
Forks1,604
Last commit3 days ago
IDE HelperIDE Helper

IDE Helper for Laravel

Stars14,891
Forks1,186
Last commit1 month ago
Intervention ImageIntervention Image

PHP Image Processing

Stars14,335
Forks1,490
Last commit19 hours ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub