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 Orm Bridge Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • File Storage Integration: Enables seamless integration of the BenGorFile library (a file-handling library) with Doctrine ORM, allowing teams to manage file entities (e.g., uploads, attachments) as database records with full ORM capabilities (e.g., relationships, queries, transactions).
  • Legacy System Modernization: Accelerates migration of legacy PHP applications using Doctrine ORM to adopt a more structured file-handling approach without rewriting core logic.
  • Build vs. Buy Decision: Justifies buying this package over building a custom Doctrine ORM adapter for file entities, reducing development time and maintenance overhead.
  • Use Cases:
    • Media-heavy applications (e.g., CMS, e-commerce, SaaS platforms).
    • Projects requiring file metadata persistence (e.g., user uploads, document management).
    • Teams already using BenGorFile or evaluating it for file operations.

When to Consider This Package

  • Adopt When:

    • Your application uses Doctrine ORM and needs to persist file entities (e.g., File objects) as database records.
    • You’re using or evaluating the BenGorFile library for file operations and want ORM integration.
    • You prioritize rapid development over custom solutions and can tolerate the package’s low activity (last release in 2018).
    • Your PHP version is ≥5.5 (compatibility requirement).
  • Look Elsewhere When:

    • You need active maintenance or long-term support (consider alternatives like VichUploaderBundle or Doctrine Extensions).
    • Your project requires modern PHP features (e.g., PHP 8+) or active community contributions.
    • You’re not using BenGorFile and need a standalone solution (e.g., Symfony’s UploadedFile or custom Doctrine types).
    • You need advanced file storage features (e.g., cloud integrations, CDN support) beyond basic ORM mapping.

How to Pitch It (Stakeholders)

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:

  • Map file entities to database tables with zero custom boilerplate.
  • Leverage ORM features (e.g., @ManyToOne, DQL queries) for file metadata.
  • Avoid reinventing the wheel—it’s battle-tested with PHPSpec and follows Symfony standards.

Risks:

  • Last updated in 2018 (monitor for updates or fork if critical).
  • Limited adoption (0 stars/dependents), but the core functionality is stable.

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)."*

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.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui