Weave 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 Context Bundle Laravel Package

kraz/doctrine-context-bundle

A Symfony bundle that adds a context layer to Doctrine ORM, letting you automatically filter queries and entities by the current context, such as tenant, locale, or user, without repeating conditions in every repository. Simplifies multi-tenancy and scoped data access.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Multi-tenant / multi-database architecture spikes. A Doctrine "context" bundle is the kind of tooling you evaluate when deciding whether to give each tenant, region, or brand its own database connection and entity manager set — or to keep one schema with tenant scoping. This package sits in the "make multiple Doctrine contexts cheap to configure and switch" bucket, which is directly relevant to that build-vs-buy call.
  • Build vs. buy on internal admin/ops tooling. The 3.9.15 change is a context name output style adjustment — cosmetic surface on whatever command or debug output lists contexts. That tells you the package is being used interactively (CLI inspection, developer feedback loops), not just as invisible plumbing. If your team would otherwise write a small internal command to enumerate Doctrine connections, this is a candidate to adopt instead.
  • Roadmap sequencing for a platform/infra quarter. Evidence here supports "evaluate, don't commit." A patch release of this size is a signal of a stable, low-churn maintenance line (3.9.x, dev-dependency housekeeping only) — which is good for risk and bad for momentum. Plan it as a bounded spike inside an existing initiative, not a standalone roadmap item.
  • Not supported by this release: any decision that depends on new capability. There are no new features, no deprecations, and no breaking changes in 3.9.15. Do not let this release trigger a re-plan.

Caveat on fit: this is a Symfony bundle, not a Laravel package. If the codebase in question is Laravel, the relevant question is not "should we adopt this" but "do we have a Symfony/Doctrine component where this applies" — and if not, this is out of scope entirely.

When to Consider This Package

Consider it when all of the following hold:

  • You are on Symfony with Doctrine ORM and you genuinely run more than one context (multiple entity managers, connections, or filtered/sharded setups) — the value proposition collapses with a single database.
  • You want a declarative, config-driven way to register and inspect those contexts rather than hand-wiring service definitions in each application.
  • You can tolerate a small, single-maintainer package. Version 3.9.15 is a one-line UX tweak plus dev-dependency bumps; that is a healthy maintenance baseline but not a signal of vendor-backed support, SLAs, or a large contributor base.
  • Your team can absorb the upgrade path yourself — at 3.9.x you should assume you are close to the maintainer, not behind a support contract.

Look elsewhere when:

  • You are on Laravel — the idioms (service providers, config publishing, Eloquent-first multi-tenancy packages) do not map, and you would be paying integration tax for little gain.
  • You need multi-tenancy with query-level filtering, tenant resolution, and migration orchestration — that is a broader problem than context registration, and a bundle of this scope will not carry it.
  • Your organisation requires security review, CVE response commitments, or named support — a solo-maintained 3.9.x bundle will not clear procurement without an internal owner willing to fork.
  • You have one database and one entity manager. Adopt nothing; keep your existing Doctrine config.

How to Pitch It (Stakeholders)

To executives (30 seconds): We reviewed a minor patch release of a small open-source PHP component that helps applications that talk to several databases at once keep those connections organised. This release only tidies how connection names are displayed on screen — no new capability, no risk, no action required. Our recommendation is unchanged: it is a low-cost, optional tool for one specific architecture pattern, not a platform investment. We are not asking for budget or headcount.

To engineering leadership: The package is a Symfony/Doctrine context bundle at 3.9.15. The release contains a cosmetic output-style change and dev-dependency bumps — a maintenance-line signal, not a capability signal. Two things matter for us: (1) it is single-maintainer, so if we adopt it we should budget for the possibility of pinning a fork; (2) it addresses Doctrine contexts only — multi-tenant data isolation, tenant resolution, and migration orchestration remain our problem. If a team is already running multiple entity managers and wants configuration over boilerplate, a two-day spike is justified. Everyone else should ignore it.

Ask: no decision needed now. If a team wants the spike, it comes out of existing initiative capacity with a defined exit criterion (can we register and switch two contexts with config only?).

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.
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin