← Back to Packages

Package

PHP Enum Mapper

PHP

Transform Enum cases into arrays of values, labels, or attributes for forms and views.

Overview

PHP utility class that provides methods to transform and map Enum cases into arrays of values, labels, or attributes. Useful for forms, filters, and view-related data. Key methods: keyValues() and keys().

Installation

composer require labrodev/php-enum-mapper

Tips

  • EnumMapper::keyValues($cases) for value/label arrays; EnumMapper::keys($cases) for values only.
View on GitHub →

Stay Updated

Join the mailing list for technical discourse, architectural logs, and research notes. No spam, ever.