greg0ire/enum
A lightweight PHP enumeration library that lets you define enum-like classes with constants, validate values, and access available constants. It provides a simple AbstractEnum base class for projects that need typed, reusable sets of values without heavy dependencies.
Executive summary: This package is a legacy workaround for PHP’s former lack of native enum support. It has limited strategic value and should be treated as a temporary migration aid, not a foundation for new product work. Because PHP 8.1+ now provides native enums, continuing to depend on this package creates avoidable technical debt, unclear licensing exposure, and maintenance risk.
For engineering: Use native PHP enums for all new Laravel work. If a legacy PHP <8.1 system needs enum-like behavior and cannot be upgraded in the current cycle, this package may be a narrowly scoped bridge—subject to code review, license review, and a documented removal plan. Do not add it to greenfield services or shared platform foundations.
For product/leadership: Approve only as a time-boxed legacy accommodation. Fund the PHP/runtime upgrade or enum migration path rather than normalizing this dependency. The product benefit is short-term delivery speed; the cost is dependency risk and future cleanup.
How can I help you explore Laravel packages today?