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 Extensions Laravel Package

fsi/doctrine-extensions

Doctrine extensions for Laravel that add common ORM behaviors such as soft deletes, timestamps, sluggable, tree, and sortable mappings, helping you reuse familiar persistence patterns with Doctrine entities.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy vs. borrow. This package sits in a commoditized niche — entity "behaviors" (typically soft-delete, timestamps, blameable/auditable, sortable/positional ordering, publishable state) that are re-implemented in nearly every Doctrine-backed back office. The real decision it informs is borrow the pattern, own the code, not add a vendor dependency.
  • Feature acceleration for internal/admin surfaces. If your roadmap is heavy on CRUD admin screens, CMS-lite content management, approval/audit trails, drag-and-drop ordering, or "archive instead of delete," these traits shorten the boilerplate cycle for those features by days, not weeks.
  • Roadmap de-risking. At 3 stars, 0 dependents, and a last release of August 2021, this is not a strategic platform bet. It should never appear on an architecture diagram or in a procurement review. Treat it as a reference implementation with a permissive (MIT) license — a source of design ideas you can legally copy.
  • Use cases it fits: internal tooling, single-team applications, prototypes where entity behavior is a means to an end, legacy Symfony/Doctrine codebases that already follow this trait-plus-event-subscriber style.
  • Use cases it does not fit: public API contracts, multi-tenant core domain models, anything with a multi-year support obligation, or a shared kernel consumed by several teams.
  • Where it changes a decision: it largely doesn't. Its value is as a time-to-first-feature shortcut for a small team, and as evidence that you should standardize an internal behavior layer rather than reach for a micro-package each time.

When to Consider This Package

Consider it when:

  • You are already on Doctrine ORM + Symfony (or a Doctrine-only stack with a DI container) and the entity behaviors it offers map directly onto near-term backlog items.
  • You are prepared to vendor or fork it under MIT and own the maintenance — treat adoption as a code copy, not a Composer require in a long-lived product.
  • The blast radius is small: a handful of entities, one team, internal users, and breakage is cheap to fix.
  • You want a worked example of how to wire behavior traits to Doctrine event subscribers/listeners without designing that plumbing from scratch.

Look elsewhere when:

  • Maintenance risk is unacceptable. No release since 2021, near-zero community, no dependents means no crowd-sourced bug discovery and no security patch path. Verify PHP 8.3+/Doctrine ORM 3 compatibility before anything else — assume breakage.
  • A maintained equivalent exists. gedmo/doctrine-extensions (with stof/doctrine-extensions-bundle) covers soft-delete, timestampable, blameable, sluggable, tree, and sortable with a real user base and active releases. That is the default answer for production.
  • The framework already solves it. #[ORM\HasLifecycleCallbacks], Doctrine event listeners, embeddables, and Symfony Workflow cover most of these behaviors with zero third-party surface area.
  • You need contractual support, SLAs, CVE response, or a vendor to escalate to. None exist here.
  • You're building a platform. A three-star package should not become an implicit standard for other teams.

How to Pitch It (Stakeholders)

To executives — one paragraph: This is a small, MIT-licensed PHP library that automates common database-entity behaviors (audit timestamps, soft deletes, ordering) and could save a few developer-days on internal admin features. It is not a supplier relationship: it has three GitHub stars, zero dependent projects, and has not shipped a release since 2021. The recommendation is to use it as a design reference or to copy the permissive-licensed code into our own codebase, not to add it as a dependency. Cost to adopt or reject is measured in days, and lock-in is effectively zero.

To engineering — the practical framing:

  • MIT license permits vendoring; the traits are the valuable part, the wiring is easy to re-own.
  • Budget roughly 1–3 days to port the behaviors you actually need, add tests, and own the listeners — comparable to the time spent evaluating and hardening the dependency.
  • If the behaviors are central rather than incidental, standardize on gedmo/doctrine-extensions and skip this entirely.
  • Do not introduce it behind a shared interface other teams depend on; the upgrade story is "we rewrite it."

Risk framing in one line: low cost, low lock-in, low support — which makes it a fine prototype input and a poor production commitment; the low opportunity score simply confirms the niche is already well served by maintained alternatives.

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.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator