emreyarligan/enum-concern
Adds a lightweight EnumConcern trait for PHP/Laravel enums with helpers for labels, values, options, validation rules, and select arrays, making enums easier to use in forms, APIs, and Blade views.
fromValue support for custom method-based matching lets teams map external values—aliases, legacy codes, case variants, vendor-specific identifiers—into internal enum/domain values without building a separate lookup layer.fromValue for custom method-based matching. Treat it as a standardization opportunity: document matching conventions, verify backward compatibility, add tests for aliases/fallbacks, and avoid embedding complex business rules directly in package callbacks.How can I help you explore Laravel packages today?