Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Doctrine Manager

Doctrine Manager Laravel Package

daviddel/doctrine-manager

Laravel package to manage Doctrine ORM/DBAL inside your app. Provides a manager/service integration for setting up and accessing Doctrine connections and entity managers through Laravel’s container and config, aiming to simplify Doctrine usage alongside Eloquent.

View on GitHub
Deep Wiki
Context7

At a glance

Frequently asked questions about Doctrine Manager
Is this package still maintained or safe to use in 2024?
No, this package hasn’t been updated since 2016 and targets outdated Doctrine ORM v2.x. It lacks compatibility with modern Laravel (PHP 8.x+) and Doctrine 3.x+, posing security and integration risks. Only use if you’re locked into Doctrine v2.x and willing to maintain it yourself.
Can I use this with Laravel’s Eloquent ORM?
No, this package is designed exclusively for Doctrine ORM/DBAL and won’t work with Eloquent. If you’re using Eloquent, this package is irrelevant and could complicate your project. Stick with Eloquent or evaluate Doctrine’s native EntityManager instead.
What Laravel versions does this package support?
The package was built for Laravel 5.x and likely won’t work out-of-the-box with Laravel 6–10. You’d need to manually resolve conflicts with Laravel’s Service Container or Dependency Injection system, which may require significant refactoring.
How do I install and configure DoctrineManager in Laravel?
First, install Doctrine ORM (`doctrine/orm`) and this package via Composer. Then, configure Doctrine using a Laravel Service Provider (e.g., `doctrine/doctrine-bundle` for Symfony-style setup). The package expects Doctrine-specific configs like `doctrine.yaml`, which may clash with Laravel’s auto-discovery.
Does this package add performance overhead compared to using Doctrine directly?
Yes, this package introduces an abstraction layer over Doctrine’s EntityManager, which may add unnecessary overhead. If performance is critical, consider using Doctrine’s native EntityManager or a lightweight repository pattern instead.
Are there alternatives to this package for managing Doctrine in Laravel?
Yes. For Laravel + Doctrine, use Doctrine’s native `EntityManager` or a custom repository layer. If you need Symfony-style integration, explore `doctrine/doctrine-bundle`. For Eloquent users, this package is redundant—stick with Eloquent or migrate to Doctrine’s native tools.
Will this package work with PHP 8.0+ and modern Laravel?
Unlikely. The package targets PHP 5.6–7.0 and may conflict with Laravel’s PHP 8.x features (e.g., named arguments, union types). You’d need to patch or fork it, which isn’t recommended due to its outdated codebase.
How do I handle testing and debugging with this package?
Debugging requires familiarity with Doctrine internals, which may be unfamiliar to Laravel developers. Use Laravel’s built-in testing tools for Eloquent or Doctrine’s native testing utilities. Expect challenges if issues arise—community support is nonexistent.
Can I migrate from Eloquent to this package without duplicating models?
No, this package doesn’t support Eloquent models. You’d need to rewrite models as Doctrine entities, which is a major refactor. If migrating from Eloquent to Doctrine, consider using Doctrine’s native tools or a hybrid approach instead of this package.
What are the security risks of using an unmaintained Doctrine package?
Unpatched dependencies (e.g., old Doctrine versions) may expose your app to CVEs. Since this package hasn’t been updated in years, it likely includes vulnerabilities that won’t be fixed. Only use it in isolated, low-risk environments with strict dependency audits.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
headercat/phpstan-extension-ide-helper
yosymfony/parser-utils
innmind/black-box
babenkoivan/elastic-migrations
babenkoivan/elastic-adapter
sandermuller/package-boost-php
sandermuller/boost-core
depa/sulu-google-reviews-bundle
croct/plug-symfony
develia/commons
dmstr/symfony-system-resources-bundle
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
renatomarinho/laravel-page-speed
develia/geo-bundle
austinheap/laravel-database-encryption
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
imbo/imbo-coding-standard