acelaya/doctrine-enum-type
Doctrine DBAL type for mapping MyCLabs\Enum\Enum values to entity columns. Provides a reusable PhpEnumType to register enums as custom Doctrine types. Note: largely obsolete now that PHP has native enums and Doctrine supports them.
status, priority) while maintaining type safety and autocompletion in PHP, reducing manual validation and improving developer experience."active", "pending") with strongly typed enums for better maintainability."DRAFT", "PUBLISHED") in queries/validations.myclabs/php-enum to Doctrine).For Executives: "This package lets us store enums directly in the database—like a ‘status’ column that’s always ‘ACTIVE’, ‘PENDING’, or ‘ARCHIVED’—instead of strings that can break or change unpredictably. The latest update adds support for Doctrine DBAL 3.0, ensuring compatibility with modern Laravel/Symfony stacks. It’s a small investment now that’ll save us time on bugs, migrations, and onboarding devs later. Think of it as adding ‘autopilot’ for a common but error-prone part of our codebase—with fewer compatibility risks."
For Engineers:
*"We’re updating to v2.5.0 of doctrine-enum-type to:
order_status, user_role) with type safety and IDE autocompletion.
Tradeoffs: The package is unmaintained, but the DBAL 3.0 update reduces friction for modern setups. Let’s test it on a non-critical table first (e.g., post_status)."*For Developers:
"Imagine your User entity has a role field. Instead of storing 'admin' as a string and hoping it’s always correct, we’ll define a UserRole enum with ADMIN, EDITOR, etc. The database column stays a string under the hood, but PHP treats it like a proper enum. Bonus: The latest version works with Doctrine DBAL 3.0, so it’ll play nice with newer Laravel/Symfony setups. Less validation code, fewer bugs, and easier refactoring. Want to try it on the post_status field next sprint?"
How can I help you explore Laravel packages today?