bengor-file/doctrine-orm-bridge
Doctrine ORM bridge for BenGorFile/File. Provides adapters/mappings to persist File domain objects with Doctrine ORM in PHP (>=5.5). Install via Composer; fully tested with PHPSpec. Documentation lives in the main File library docs.
Adopt When:
File objects) as database records.Look Elsewhere When:
UploadedFile or custom Doctrine types).For Executives: "This package lets us treat file uploads like any other database entity in Doctrine ORM, cutting development time by reusing existing ORM patterns (e.g., relationships, queries) for file management. It’s a lightweight, MIT-licensed solution that integrates with our current stack, reducing technical debt while supporting use cases like user uploads or document storage. The trade-off is minimal maintenance risk, given its niche focus."
For Engineering Teams: *"The DoctrineORMBridge adapter bridges BenGorFile with Doctrine ORM, enabling us to:
@ManyToOne, DQL queries) for file metadata.Risks:
Recommendation: Use for internal tools or low-risk projects where file-ORM integration is a priority. For production-critical systems, pair with a backup plan (e.g., custom Doctrine type or VichUploaderBundle)."*
How can I help you explore Laravel packages today?