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

Enum Bundle Laravel Package

palabs/enum-bundle

Palabs Enum Bundle adds structured, reusable enum support to Laravel and PHP projects. It simplifies defining and organising enum cases so domain values stay consistent, readable and easy to maintain across your application.

View on GitHub
Deep Wiki
Context7

Symfony bundle for PaLaabs/php-enum

Frequently asked questions about Enum Bundle
Is palabs/enum-bundle compatible with Laravel?
It is a Symfony bundle, so it is not a native Laravel package and will not register through Laravel's service provider system without adaptation. Its intended integration point is config/bundles.php in a Symfony application. Laravel developers should generally use native PHP 8.1 enums with Eloquent casts and validation rules instead.
Do I need palabs/enum-bundle if I am already using PHP 8.1 enums?
Probably not. Native PHP 8.1 backed enums plus first-party Symfony support for route parameters, form choices, validation, Doctrine ORM enumType, and Serializer cover most enum use cases. The bundle competes with evolving core features rather than filling a clearly demonstrated gap.
How do I install palabs/enum-bundle?
Installation is a Composer require followed by registering the bundle in Symfony's config/bundles.php. The assessment notes there are no community integration guides and no downstream dependents to reference. You should inspect composer.json and confirm test coverage before adding it to an application.
Does palabs/enum-bundle support Symfony 6 and Symfony 7?
The declared Symfony version ranges are not specified in the provided context, so you must verify composer.json before assuming support. Bundles are the most upgrade-sensitive layer of a Symfony application, and a tight constraint can block a platform upgrade. Check that its PHP, Symfony, and Doctrine ranges intersect with your pinned versions.
Is palabs/enum-bundle actively maintained?
The assessment flags it as a single-maintainer package with minimal adoption: 2 GitHub stars and 0 dependents. Last commit date and CI status are not provided, so review the repository directly. The opportunity score of 1.73 is effectively no market validation, which is a warning sign for long-term maintenance.
Does palabs/enum-bundle integrate with Doctrine DBAL types?
The assessment warns that it may introduce Doctrine DBAL types or mapping conventions that get stored in entity metadata. That is the expensive removal path because entity mappings, form classes, and config may all need coordinated edits. Confirm whether custom types are involved before adopting it.
What alternatives exist to palabs/enum-bundle?
Use native PHP 8.1 enums with Symfony's built-in enum handling for routes, forms, validation, Doctrine ORM enumType, and Serializer. Laravel applications can use Eloquent enum casts and native validation rules. These first-party options avoid the dependency risk of a low-adoption third-party bundle.
Can I use palabs/enum-bundle safely in production?
There is no ecosystem evidence that this integration is exercised in production anywhere, and adoption is effectively zero. A production spike should identify the exact gap versus native Symfony and Doctrine features, verify version constraints and test coverage, and document an exit plan. Without that, native enums are the safer choice.
How hard is it to remove palabs/enum-bundle later?
Removal means reversing the config/bundles.php registration, any config/packages YAML, and any entity attributes or form type usage. The sticky risk is custom Doctrine types or mapping conventions stored in entity metadata, which may require an intermediate mapping or data migration step. Write down the exit plan before adopting the bundle.
Does palabs/enum-bundle work with Laravel 10 or Laravel 11?
It is a Symfony bundle rather than a Laravel package, so Laravel 10 and 11 compatibility is not its target. The blurb mentions Laravel and PHP projects, but the architecture described is a Symfony DI extension with framework integration. Laravel apps should rely on native enums and Eloquent casts instead.
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.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections