adrenalinkin/enum-property-bundle
Symfony bundle integrating EnumMapper: adds Twig filters/functions to convert enum DB values to human labels and back, fetch full enum maps, and provides validation support for enum properties. Install via Composer and enable the bundle in AppKernel.
Use this package if:
Look elsewhere if:
Spatie or Doctrine Extensions).EnumMapper."This package streamlines how our Symfony application handles enumerated values—like statuses, user roles, or configurations—by providing standardized tools for validation, database mapping, and templating. It reduces development time and errors by eliminating custom enum logic, ensuring consistency across forms, APIs, and reports. With minimal setup, we can improve data integrity and developer productivity, aligning with our tech stack while keeping costs low (MIT license, no vendor lock-in)."
*"The Enum Property Bundle integrates EnumMapper into Symfony, offering:
DB_MALE = 10 ↔ Gender::MALE).
This replaces repetitive boilerplate with a lightweight, framework-native solution. Pros: Faster development, fewer bugs. Cons: Early-stage package (0 stars), but MIT license and clear documentation mitigate risk. Recommended for projects with complex enum needs in Symfony."**"If you’re tired of writing the same enum-to-DB or Twig display logic for every project, this bundle saves you time. Key perks:
How can I help you explore Laravel packages today?