larapack/doctrine-support
Laravel package that enhances Doctrine support in Laravel, including support for enum types. Install via Composer and (for Laravel 5.4 and below) register the DoctrineSupportServiceProvider. Use v0.1.3 for Laravel versions older than 5.4.
enum support aligns with modern PHP (8.1+) and Doctrine’s capabilities, improving type safety and schema design. This remains a key differentiator from native Eloquent.doctrine/orm, doctrine/dbal) remain heavy, increasing bundle size and complexity. This is exacerbated by the lack of modern Laravel support.EntityManager or testing DQL queries in Laravel’s test suite is non-trivial and may require custom test utilities.array type deprecation, new attributes), which may break Doctrine’s internals.[ORM\Column]) instead of annotations, which the package may not support.doctrine/orm, doctrine/dbal) may introduce CVEs.[ORM\Column])? If not, how are Doctrine’s modern mapping strategies handled?schema-tool vs. Laravel’s migrations).spatie/laravel-doctrine-orm, custom Eloquent macros, or full Doctrine migration).EntityManager, testing DQL queries, or asserting hybrid ORM behaviors).EntityManager in Laravel’s service container.Model or use shared traits.Schema::table() for shared tables).^2.7) to avoid breaking changes.composer.json:
composer require doctrine/orm doctrine/dbal doctrine/annotations
EntityManager without conflicting with Eloquent.spatie/laravel-doctrine-orm).How can I help you explore Laravel packages today?