Weave Code
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

Enum Helper Laravel Package

oskarstark/enum-helper

Helpers for PHP 8.1+ enums: compare enum cases (equals, notEquals, equalsOneOf) and convert enums to arrays (backed and non-backed). Includes an abstract EnumTestCase to simplify testing enum behavior.

View on GitHub
Deep Wiki
Context7
Package
Score
Description
Stars
Likes
Forks
Downloads
Issues
Score
Opportunity
License
Last Release
myclabs/php-enum 0.77 myclabs/php-enum brings SplEnum-style enums to PHP. Define enum classes, get autogenerated static constructors, validate values, compare instances, list possible values, and use enums as parameter/return types with extra methods—without a PHP extension. 2,726 2,760 128 3M 12 30.2 45.6 MIT 1 year ago
View on GitHub
Deep Wiki
Context7
konekt/enum 0.75 Lightweight PHP enum base class (pre-PHP 8.1) for defining value-safe constants via abstract Enum subclasses. Simple instantiation, validation and utilities, with docs and optional Laravel Eloquent integration via konekt/enum-eloquent. 21 21 2 74K 0 0.2 48.7 MIT
View on GitHub
Context7
open-southeners/extended-php 0.74 Extended PHP helpers for modern apps: adds convenient functions, utilities, and small enhancements that complement core PHP to reduce boilerplate and speed up everyday development. Lightweight, easy to drop into existing projects. 0 0 0 750 0 12.2 41.5 MIT 9 months ago
View on GitHub
Context7
laudis/typed-enum 0.74 4 4 0 32K 0 0.0 52.5 MIT
View on GitHub
Context7
prinsfrank/enums 0.73 2 2 1 53K 0 1.8 55.3 MIT 1 year ago
View on GitHub
Context7
paillechat/php-enum 0.73 PHP 7+ enum library: define enums by extending Enum and declaring constants, then instantiate via static named calls (IssueType::ONE()). Instances are strict-equal singletons, work with in_array/type hints, and can convert to/from names. 16 17 3 508 0 2.0 20.6 MIT 7 years ago
View on GitHub
Context7
daverandom/enum 0.73 Lightweight PHP enum base class: extend a single abstract class and define members as constants. Includes static helpers to validate and resolve enum names and values. Useful for simple, shared enum functionality. 0 0 0 23 0 0.3 6.6 MIT 8 years ago
View on GitHub
Context7
archtechx/enums 0.73 Modern PHP enum helpers: casting, validation, labels, and convenience methods for native enums. Add common patterns like options arrays, random values, and comparisons to make enums easier to use across Laravel apps and APIs. 566 568 23 597K 2 7.0 42.0 MIT 1 year ago
View on GitHub
Context7
henzeb/enumhancer 0.72 69 70 8 20K 0 18.4 36.6 AGPL-3.0 7 months ago
View on GitHub
Context7
henzeb/enumhancer-ide-helper 0.72 Laravel IDE helper for enhanced PHP enums. Improves autocompletion and type hints for Enumhancer features in PhpStorm and similar IDEs, generating stubs/metadata so enum methods, cases, and helpers are easier to discover and use. 0 0 0 1K 0 0.3 42.9 AGPL-3.0 3 years ago
View on GitHub
Context7
spatie/enum 0.71 Obsolete: PHP 8.1+ has native enums (recommended). Spatie Enum provides strongly typed, object-based enums for older PHP versions, enabling IDE-friendly static analysis and refactoring. Define enums via @method annotations and call StatusEnum::draft(). 851 853 67 1M 0 15.4 43.7 MIT 4 years ago
View on GitHub
Context7
elao/enum 0.71 Opinionated extensions for PHP 8.1+ native enums with readable labels, flag/bitmask enums, and extra values. Includes integrations for Symfony (Forms, HTTP Kernel arg resolver, Translation, VarDumper), Doctrine ORM/ODM, and Faker. 327 327 29 33K 15 30.5 36.7 MIT 3 months ago
View on GitHub
Context7
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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky