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

Teamq Doctrine Behaviors Laravel Package

teamq-ec/teamq-doctrine-behaviors

TeamQ Doctrine Behaviors adds reusable Doctrine ORM behavior extensions to PHP projects, bundling common entity traits like timestamps, slugs, soft deletes, and blameable fields into one lightweight package. Drop-in traits and listeners keep models consistent and cut boilerplate.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Choosing persistence architecture for a Laravel codebase: this package is a Doctrine ORM extension set (behaviors such as timestampable, sluggable, soft-delete, blameable, tree/nested-set), so it only matters if you are deliberately running Doctrine alongside or instead of Eloquent. It supports the "doctrine vs. eloquent" build decision with a concrete, reusable behavior library rather than writing audit/timestamp/slug listeners per entity.
  • Build vs. buy for cross-cutting entity concerns: if the roadmap includes audit trails, "who changed what," soft deletes on regulatory data, hierarchical content, or slug generation, adopting maintained behaviors avoids re-implementing listeners and event subscribers across every entity — a recurring, low-differentiation cost.
  • Migration and consolidation features: relevant when porting a Symfony/Doctrine application into Laravel, or when a Laravel product needs data-mapper semantics (unit of work, inheritance mapping, embeddables) that Eloquent handles poorly. This package lowers the switching cost of that roadmap item.
  • Risk item on the roadmap, not a feature: the v2.0.0 release is a bare version bump with no changelog, no migration notes, and no documented breaking changes. For planning purposes, treat the upgrade as an unestimated spike: it could be a PHP/Laravel/Doctrine compatibility bump (low effort) or a namespace/API break across every entity using the behaviors (high effort, touches persistence layer).
  • Do not use it to justify a Doctrine migration: a small third-party behavior package is not sufficient reason to move off Eloquent. It is an enabler if the Doctrine decision is already made for other reasons.

When to Consider This Package

Adopt when:

  • You are already committed to Doctrine ORM in a Laravel application (or migrating one in), and you want standard behaviors without maintaining your own listener/subscriber code.
  • Your requirements include timestampable, sluggable, soft-delete, blameable/auditable, tree, sortable, or translatable semantics on multiple entities — a pattern that repeats across the domain and benefits from a shared, tested implementation.
  • The team accepts Doctrine's steeper learning curve and configuration overhead in exchange for cleaner separation of domain model from persistence.
  • You can pin the version and review the diff between v1.0.0 and v2.0.0 yourself, because the release notes do not describe what changed.

Look elsewhere or hold when:

  • Default Laravel/Eloquent is the stack of record. Eloquent equivalents exist for nearly all of these behaviors (SoftDeletes, timestamps, sluggable packages, Baum/NestedSet), with far larger communities.
  • The package is unproven: single-maintainer org (teamq-ec), minimal release history, and a major version published with a one-line changelog is a governance red flag. Demand a diff review and a support/exit plan before depending on it in production.
  • You need compatibility guarantees for your PHP, Laravel, and Doctrine versions. Nothing in these notes states supported version ranges; verify in composer.json rather than assuming.
  • You need vendor-backed support, security responsiveness, or an SLA.

How to Pitch It (Stakeholders)

To executives: This is a small open-source utility that adds standard database behaviors — audit timestamps, soft deletes, URL slugs, change attribution — to a Laravel application built on Doctrine. It is a cost-avoidance component, not a product differentiator: it only pays off if we have already chosen Doctrine for our data layer. The new v2.0.0 release is a version bump with no published changelog, so I am not recommending adoption on the strength of this release alone; I am recommending we evaluate it only in the context of an existing Doctrine decision, and that any upgrade be scoped as a small, time-boxed investigation with a rollback plan. No customer-facing impact either way.

To engineering: Behavior coverage is the value — timestampable, sluggable, soft-delete, blameable, tree, sortable — implemented as Doctrine listeners/event subscribers instead of bespoke code per entity. Two things to settle before we adopt or upgrade: (1) read the actual v1.0.0→v2.0.0 diff; the release notes say only "Upgrade version," so we do not know whether the major bump is a dependency constraint change or an API break that would touch every mapped entity; (2) confirm supported PHP/Laravel/Doctrine ranges from composer.json, plus test coverage and maintenance cadence for a single-maintainer repository. If we adopt, pin the version, keep the behavior configuration in one place, and wrap the upgrade in a branch with the full test suite as the gate. If this is the only reason we would introduce Doctrine into a Laravel app, the answer is no — use Eloquent equivalents.

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.
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
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