toovalu-github/doctrine-behaviors
Doctrine Behaviors adds reusable entity traits and listeners to Doctrine ORM, including timestampable, sluggable, soft-deletable, blameable, and tree behavior, so common model logic stays out of your entities and your Laravel or PHP app stays clean.
Architecture fit
laravel-doctrine/orm) or is a Symfony/Doctrine codebase being partially migrated into a Laravel service.prePersist, onFlush, loadClassMetadata). That is idiomatic and low-intrusion — entities opt in per-behavior rather than inheriting a heavy base class.KnpLabs/DoctrineBehaviors. Technical quality is therefore inherited; the risk is in the fork, not the design.Integration feasibility
EventManager, add traits/interfaces to entities, and let doctrine:migrations:diff generate schema. No framework-specific bootstrapping required beyond the Doctrine service provider.Technical risk
Key questions
KnpLabs/DoctrineBehaviors at the corresponding tag, and is that diff a patch we need or an unreviewed divergence?laravel-doctrine/orm?cweagans/composer-patches? (The latter is usually the better answer.)Stack fit
doctrine/orm 2.x (3.x only if the fork's CI proves it), laravel-doctrine/orm for the service provider and entity manager wiring.Migration path
knplabs/doctrine-behaviors + cweagans/composer-patches with the fork's delta as a tracked patch. This keeps you on the maintained upstream and makes the divergence visible in your repo.composer.json and add a Renovate/Dependabot rule that requires human review.Compatibility
doctrine/annotations is not required.uuid column type vs. binary. This must match your existing conventions or you will get cross-table join type mismatches.Sequencing
Maintenance
Support
Scaling
Failure modes
Ramp-up
How can I help you explore Laravel packages today?