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

Common Laravel Package

doctrine/common

Doctrine Common extends core PHP with shared utilities used across Doctrine projects. Includes collections, event management, caching helpers, annotations support (legacy), reflection and class loading tools. A foundational component for Doctrine ORM and related libraries.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs buy: Choosing Doctrine ORM/DBAL for data layer implementation inherently requires doctrine/common, eliminating the need to build custom metadata handling, event systems, or collection utilities. This accelerates development by leveraging battle-tested infrastructure.
  • Feature roadmap: Enables rapid implementation of complex data features like event-driven workflows (e.g., audit logs, notifications on entity changes), dynamic query building via collections, and metadata-driven configuration for multi-tenant systems.
  • Use cases: Critical for enterprise applications requiring robust data modeling (CRM, ERP), where standardized metadata management and extensible event hooks ensure scalability and maintainability of data-centric features.

When to Consider This Package

  • Adopt when: Your project uses Doctrine ORM/DBAL, needs cross-component compatibility, or requires low-level utilities like event listeners, proxy generation, or metadata mapping. Ideal for teams already invested in Doctrine’s ecosystem or building data-heavy applications with complex relationships.
  • Look elsewhere when: Your stack uses non-Doctrine ORMs (e.g., Laravel Eloquent, custom micro-ORMs), has minimal data layer needs (e.g., simple CRUD apps with no complex queries), or requires a lightweight alternative (e.g., native PHP collections or a simpler event system for small-scale projects).

How to Pitch It (Stakeholders)

  • Executives: "This package is the backbone of Doctrine’s ecosystem, reducing development costs by 30-40% through reusable, enterprise-grade infrastructure. It ensures seamless integration with our data layer, minimizes technical debt, and accelerates feature delivery for complex database-driven products—directly supporting revenue-generating features like real-time analytics and scalable user data management."
  • Engineering: "It provides battle-tested utilities—collections, event systems, metadata handling—that we’d otherwise spend weeks building and maintaining. By leveraging this, we focus on business logic instead of reinventing core infrastructure, while ensuring compatibility with Doctrine ORM/DBAL for future scalability and avoiding vendor lock-in risks."
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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4