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

Laravel Enum Laravel Package

spatie/laravel-enum

Laravel integration for spatie/enum: use Enum base class in Laravel, cast model attributes to enums (including nullable and arrays), and get Laravel-friendly behavior via custom casts and Castable support for Eloquent.

View on GitHub
Deep Wiki
Context7
Package
Score
Description
Stars
Likes
Forks
Downloads
Issues
Score
Opportunity
License
Last Release
innoge/laravel-enum-states 0.91 A state machine for Eloquent built on native PHP enums. Define transitions, defaults, and lifecycle actions on the enum itself, register fields with a single attribute, and keep your normal model casts. Invalid transitions throw; defaults apply automatically. 5 5 1 3K 0 20.1 44.0 MIT 6 days ago
View on GitHub
spatie/laravel-settings 0.91 Store strongly typed application settings in Laravel using a database, Redis, or another repository. Define each settings group as a PHP class with typed properties, inject it anywhere via Laravel's container, update values, and persist them with a single save() call. 1,521 1,529 140 1M 0 42.2 46.2 MIT 3 days ago
View on GitHub
Context7
spatie/laravel-validation-rules 0.91 Handy Laravel validation rules by Spatie: Authorized (policy checks), CountryCode, Currency, Enum, ModelsExist, and Delimited. Installs via Composer, auto-registers, and supports publishing translations for customization. 828 836 43 211K 0 20.6 35.0 MIT 8 months ago
View on GitHub
spatie/enum 0.90 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(). 854 857 67 2M 0 15.3 46.3 MIT 4 years ago
View on GitHub
Context7
peltonsolutions/laravel-enums 0.90 A Laravel package for working with PHP enums, offering convenient helpers and framework integration for defining, validating, casting, and using enum values across models, requests, and application code. 1 2 0 0 0 0.4 0.5 MIT 2 years ago
View on GitHub
marc-mabe/php-enum 0.90 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. 498 506 35 8M 2 12.9 55.1 BSD-3-Clause 1 year ago
View on GitHub
elao/enum 0.90 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 46K 15 25.0 37.3 MIT 6 months ago
View on GitHub
bensampo/laravel-enum 0.90 Laravel Enum provides a powerful enum implementation for Laravel with class-constant definitions, instantiation, casting, validation, localization, bitwise/flag enums, and an artisan generator. Not recommended for new projects—use native PHP 8.1 enums. 2,028 2,042 157 502K 1 15.0 33.1 MIT —
View on GitHub
chadsikorra/php-simple-enum 0.89 A lightweight, dependency-free enum implementation for PHP. Define constant sets with helper methods for validation, value lookup, and comparison, useful where native enums aren't available. Simple API that's easy to drop into existing projects. 11 — 0 — 0 0.1 — MIT —
paillechat/php-enum 0.89 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 847 0 2.0 23.6 MIT 8 years ago
View on GitHub
eloquent/enumeration 0.89 Eloquent Enumeration brings typed enum support to Laravel’s Eloquent models. Define reusable enums, cast attributes to enum instances, and keep status or type fields type-safe and expressive without leaving familiar Eloquent conventions. 146 — 12 — 3 0.9 0.5 MIT 7 years ago
dive-be/php-enum-utils 0.89 Utilities for PHP 8.1+ enums in Laravel: convert enum cases to arrays, values, options, and labels for forms and APIs, compare and inspect cases, and cut boilerplate with a small, dependency-free helper set that makes working with native enums painless in everyday application code. 31 — 0 — 0 4.6 — MIT 9 months ago
cerbero/enum 0.89 A powerful enum implementation for Laravel that turns class constants into rich, type-safe enum objects. It adds validation rules, localization, Eloquent casting, comparisons, and Blade helpers while keeping enums simple and extensible. 362 360 3 8K 0 1.9 19.2 MIT —
View on GitHub
sakanjo/laravel-easy-enum 0.89 Simplify PHP enums in Laravel with sakanjo/laravel-easy-enum. This lightweight package provides helpers for labels, values, options, validation rules, and Eloquent/Blade integration, reducing boilerplate and keeping enum-driven code clean and readable. 10 — 0 — 0 12.4 — MIT 5 months ago
View on GitHub
laudis/typed-enum 0.89 — 4 4 0 43K 0 0.0 54.4 MIT —
View on GitHub
mrgoodbytes8667/enum-serializer-bundle 0.89 A Symfony bundle that adds serialization support for PHP enums, making it easy to convert backed enum cases to and from scalar values across APIs, Doctrine and config, with lightweight integration and minimal setup. 0 0 0 103 0 0.0 27.9 NOASSERTION 2 years ago
View on GitHub
webfox/laravel-backed-enums 0.88 Adds Laravel-friendly helpers to PHP backed enums: generate labels and option lists, validate enum values, and use them cleanly in forms, APIs, and application logic. A lightweight way to make backed enums more practical in Laravel. 44 45 4 404 1 9.2 15.2 MIT 7 months ago
View on GitHub
nasyrov/laravel-enums 0.88 Laravel Enums adds first-class enumeration support: define typed enum classes, then use them as Eloquent casts, validation rules, and translatable labels. Helpers for values, options, and comparisons make model attributes and form choices safer and more expressive. 32 — 9 — 0 0.7 — MIT 5 years ago
View on GitHub
henzeb/enumhancer 0.88 — 69 69 8 40K 0 13.0 39.2 AGPL-3.0 10 months ago
View on GitHub
archtechx/enums 0.88 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. 567 568 23 597K 2 6.9 41.6 MIT 1 year 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.
gmostafa/php-graphql-client
xeviant/paystack
snowsoft/faker
meditationsteps/blogetc
animalyoung/laravel-influxdb
onix-solutions/sms-telera
lonely-lights/prosetta
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log