nick4fake/doctrine-behaviors
Bring Doctrine behavior extensions to Laravel with nick4fake/doctrine-behaviors. Add timestampable, blameable, soft-delete, sluggable, and tree support through reusable traits, keeping entity code clean and consistent. Easy to install and configure for Doctrine projects.
SoftDeletable trait makes the reversible path the default and deferrable; deciding after launch means a migration plus an audit of every query in the codebase. Use the availability of the behavior to force the decision early rather than late.Translatable behavior lets you scope multi-language content as a data-model change instead of a re-architecture. If localization is on the 12-month roadmap, confirm this pattern exists before schema lock-in; if it's never coming, don't model for it.Blameable + Loggable produce who-changed-what records that serve as evidence for SOC 2 / ISO questionnaires, satisfy enterprise buyer security reviews, and cut support triage time. That's a sales-enablement argument as much as an engineering one.SoftDeletes plus established packages (spatie/laravel-sluggable, astrotomic/laravel-translatable, kalnoy/nestedset). Doctrine behaviors are relevant for Laravel apps running laravel-doctrine/orm, or Symfony services.knplabs/doctrine-behaviors package, or copy the traits into src/. With 0 dependents and no release cadence visible, taking a hard dependency on this fork is a maintenance liability with no offsetting benefit. MIT licensing means vendoring costs us nothing but a code review.To executives: These are standard, MIT-licensed building blocks for features every product needs — created/updated timestamps, soft delete and restore, change history, localized content, URL slugs, hierarchical categories. They're already-solved problems; writing them ourselves is pure cost with no competitive upside. Adopting them is roughly a one-week saving per behavior across design, implementation, and test, and it front-loads compliance evidence (audit trails) that enterprise buyers ask for. Important caveat to state plainly: this particular fork is not something we should depend on — we'd adopt the maintained upstream project or vendor the code, so there's no added vendor risk and no lock-in.
To engineering: Composable traits for Doctrine entities, opt-in per entity. We'd pull in only what we need, pin the version, write integration tests around the ones that touch persistence (soft delete and translatable especially), and prefer upstream or vendored copies over this repo. Low integration cost, low blast radius, reversible.
How can I help you explore Laravel packages today?