ac/model-traits-bundle
Symfony2 bundle that integrates American Councils’ ac/model-traits into your application, providing reusable model traits and related setup for Symfony projects. Useful for sharing common model behavior across entities with minimal boilerplate.
createdAt, updatedAt, or deletedAt fields) across all entities, improving maintainability and reducing technical debt.lastLoginAt or isActive flags.Adopt if:
Look elsewhere if:
whereDeleted() with complex joins) → Use Doctrine Extensions.For Executives: "This bundle cuts 30–50% of the time spent writing repetitive model code in Symfony2—like auto-timestamps, soft deletes, or slug generation—without adding bloat. For a team of 5 devs, that’s ~2–4 dev-weeks saved annually. It’s a low-risk, MIT-licensed tool that aligns with our goal to ship features faster while keeping the codebase clean. Think of it as ‘copy-paste eliminated’ for our backend."
For Engineers:
*"The ModelTraitsBundle gives us battle-tested, reusable traits for common model patterns (e.g., Timestampable, SoftDeletable, Slugable) with zero config. It’s lighter than Doctrine Extensions and plays nicely with Symfony’s ecosystem. We’d use it for:
For Architects: *"This is a composable solution—traits can be mixed/extended without tight coupling. It’s a good fit if:
Content entities need slugs).How can I help you explore Laravel packages today?