Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Enumhelper Laravel Package

markbaker/enumhelper

A lightweight PHP helper for native enums, offering convenient methods for listing cases, names and values and converting enums into arrays or options for forms, validation and select inputs.

View on GitHub
Deep Wiki
Context7

markbaker/enumhelper is a lightweight PHP utility that adds convenient helper methods for working with PHP 8.1+ enums. It simplifies common enum tasks—such as listing cases, validating values, and converting between names and backed values—so you can avoid repetitive boilerplate in your applications.

  • Retrieve all case names, values, or associative arrays from any enum
  • Validate whether a given value or name is a valid enum case
  • Convert between enum instances, names, and backed values with ease
  • Works with both BackedEnum and UnitEnum types
  • Simple, dependency-free API that integrates cleanly into existing PHP projects
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource