marc-mabe/php-enum
Native PHP enum implementation via an abstract base class. Extend it to define enumerations from public constants (supports scalars, null, and arrays), create and compare enum instances, and keep a strict set of named values for safer domain modeling.
Executives: "This package ensures data integrity by enforcing valid business states across our application, reducing bugs and maintenance costs. It accelerates development by providing a battle-tested solution for enum patterns, freeing engineering resources for higher-value features."
Engineering: "A lightweight, well-documented library with strong test coverage that simplifies enum management. Features like EnumSet for efficient set operations and EnumMap for value mapping reduce boilerplate code, while strict type safety prevents common errors in stateful systems."
How can I help you explore Laravel packages today?