mkietlinski/doctrine-extensions
mkietlinski/doctrine-extensions provides reusable Doctrine ORM extensions for PHP projects, helping reduce boilerplate and add common behavior to your Doctrine setup. Install via Composer and integrate with your existing entity manager configuration.
gedmo/doctrine-extensions, or write narrow in-house traits. With zero adoption signals on this fork, "buy" realistically turns into "vendor and own."Consider it only when all of the following hold:
laravel-doctrine/orm). On an Eloquent-only stack — the majority of Laravel apps — this package has no integration surface and should be dropped from consideration immediately.composer.json before committing.Look elsewhere when:
gedmo/doctrine-extensions has a real community; in-house traits are a defensible alternative for a narrow subset.Executives (one paragraph). This is a small MIT-licensed Laravel/Doctrine integration that packages the table-stakes entity behaviors — audit timestamps, blame tracking, slugs, soft deletes, translations, hierarchies, manual ordering — that otherwise get rebuilt project by project. Adopting it can shorten delivery on CMS, localization, and audit workstreams and standardize how those features are implemented. The cost is not license fee but risk: effectively zero adoption, one maintainer, no support channel, no downstream validation. Recommendation: treat it as an internal dependency candidate, not a vendor product. Authorize a short spike to compare it against upstream gedmo/doctrine-extensions, pin the version, and plan to vendor or fork if it becomes load-bearing. Do not put it on security- or revenue-critical paths.
Engineering (summary). Doctrine behavioral extensions for Laravel Doctrine apps: timestampable, blameable, soft-delete, sluggable, translatable, tree, sortable — registered as event subscribers on the EntityManager. Two gates before any adoption: (1) does the app actually run Doctrine rather than Eloquent, and (2) what does this fork change relative to upstream? Mitigations: diff against gedmo/doctrine-extensions first and drop the fork if the delta is immaterial; confirm doctrine/orm and PHP version compatibility; enable Timestampable alone as a plumbing spike; add SoftDeleteable only after testing every affected repository's query plans; defer Translatable, Tree, and Loggable until there's a concrete need. Pin a commit SHA, assign a fork owner, and establish an exit ramp before production. Expect roughly 1–2 days to read the listeners and 1–2 weeks for a tested, query-plan-validated rollout.
How can I help you explore Laravel packages today?