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

Enum Bundle Laravel Package

yeugone/enum-bundle

yeugone/enum-bundle is a PHP package for Laravel developers seeking a cleaner way to organize and work with enums. It bundles practical enum utilities that help define type-safe values, reduce scattered constants, and keep application code more structured and readable across your project.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for domain enums. Native PHP 8.1+ backed enums cover most "simple enumeration" needs; this package's incremental value is Symfony wiring (DI/config, form types, validation, serialization). Decision input: only buy if that wiring is a real, recurring time sink.
  • Ecosystem fit. Despite the "Laravel/PHP" framing, this is a Symfony bundle, not Laravel. For a Laravel-first product line this is a "do not adopt" signal; for Symfony services it is at least on-target.
  • Dependency governance. 12 stars, 0 dependents, single-maintainer risk. Feeds the approved-package list and vendor-risk scoring — a candidate for "reference implementation, not dependency."
  • Roadmap for a shared domain vocabulary layer (order states, statuses, roles) across services. This package is useful as a pattern to copy, not necessarily to install.
  • Modernization backlog. If legacy code still uses class-constant pseudo-enums, this informs the interim pattern versus jumping straight to native enums.

When to Consider This Package

Consider adopting when:

  • The stack is Symfony, not Laravel, and you want framework integration for enums.
  • You are on PHP < 8.1 or maintaining legacy code without native enum support.
  • You need Symfony-specific enum handling (forms, validation, serializer/Doctrine mapping) and would otherwise build it.
  • MIT license and small surface area are acceptable — the codebase is small enough to audit yourself and pin.
  • It's prototypes or internal tooling where low adoption risk is tolerable.

Look elsewhere / avoid when:

  • Laravel project — ecosystem mismatch, no Laravel integration.
  • PHP 8.1+ greenfield — native backed enums plus framework casts already solve this with zero third-party maintenance.
  • You need community support, SLA, or a large issue history to troubleshoot against.
  • Your dependency policy blocks packages with near-zero adoption — 12 stars and 0 dependents is a hard stop under most such policies.
  • You would be the only production user — at that point you are the de facto maintainer.

Note: the higher "opportunity" signal reflects low competition in a niche, not proven demand; native enums have already absorbed most of the underlying need.

How to Pitch It (Stakeholders)

Executives: A small MIT-licensed PHP enum helper with a recent release but negligible adoption. No license cost, minimal legal review, but no strategic value as a platform commitment. Recommendation: treat it as an internal pattern reference, not a dependency of record.

Engineering: It's a Symfony bundle, so it does not fit our Laravel services. PHP 8.1 native enums already give us typed, backed enumerations with match support; the package's remaining value is Symfony glue. If a Symfony team wants it, pin the version, review the small source, and wrap it behind our own abstraction so swapping to native enums later is a one-file change. Otherwise, standardize on native enums plus framework casts — fewer dependencies, near-zero maintenance overhead, and no single-maintainer risk.

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