doctrine/phpcr-odm
Doctrine PHPCR-ODM brings Doctrine-style object document mapping to PHP Content Repository (PHPCR) implementations. Map PHP objects to nodes and query content repositories via familiar Doctrine APIs. Supports Jackrabbit and Doctrine DBAL setups, with tests and docs available.
DocumentManager, lifecycle events, query builders), reducing cognitive load for teams already using Doctrine ORM. Compatibility with Doctrine Persistence 4 ensures no version conflicts and simplifies dependency management, critical for Laravel’s long-term maintainability.doctrine/persistence, PSR-6 Cache), but Laravel’s service container can host Doctrine services via a custom service provider. Key challenge: registering PHPCR\DocumentManager alongside Eloquent without conflicts (e.g., DocumentManager namespace collisions). Solution: Use aliases (e.g., PhpCrDocumentManager) and dedicated service namespaces.odm.document_manager).Node, Path, Hierarchy) or Doctrine ODM may face adoption friction. Mitigation:
Collection → array, expression class refactoring) may require codebase audits. Risk: Regression in existing PHPCR usage.symfony/cache) to bridge Laravel’s cache drivers.lock() methods.symfony/console, symfony/http-foundation). The service container can host both Eloquent and ODM services, but requires:
PhpCrDocumentManager, Configuration, and PHPCR\Connection as Laravel services.odm.document_manager instead of document_manager).onFlush) to Laravel’s event system.findByPath(), createQueryBuilder()).How can I help you explore Laravel packages today?