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 pattern, enabling seamless integration with existing Laravel Doctrine ORM usage (e.g., shared lifecycle events, query builders). Compatibility with Doctrine Persistence 4 ensures no version conflicts, simplifying dependency management.doctrine/persistence, PSR-6 Cache), but Laravel’s service container can host Doctrine services. Service provider bootstrapping will register PHPCR\DocumentManager alongside Eloquent, with minimal conflicts if namespaced properly.DocumentManager) require clear separation (e.g., aliases like PhpcrDocumentManager). Transaction management must align between ORM and ODM to avoid deadlocks; Laravel’s database transactions may need extension to include PHPCR sessions.prePersist) must be mapped to Laravel’s event system.Node, Path, Hierarchy) or Doctrine ODM may face adoption friction. Requires dedicated training or internal documentation for developers, especially around:
/site/pages/*[@level=2]).@Field, @Children).Collection → array, expression class refactoring) may require codebase audits for existing PHPCR ODM usage. Upgrade testing is critical, especially if migrating from older versions.DocumentManager may clash with Laravel’s service binding conventions. Requires custom service providers or aliases.onFlush) must be bridged to Laravel’s event system for consistency.doctrine/persistence, PSR-6 Cache), which Laravel can host via its service container. Key components:
DocumentManager patterns with ORM.script_jackrabbit.sh).How can I help you explore Laravel packages today?