- Is fervo/enum-bundle a Laravel package?
- No. fervo/enum-bundle is a Symfony bundle that requires symfony/framework-bundle and registration in config/bundles.php. It has no Laravel service provider, facade, or container wiring, so it cannot be installed as a normal Laravel Composer dependency. For Laravel enum work, use native backed-enum casts, validation rules, and Eloquent casts.
- Can I use fervo/enum-bundle in a Laravel application?
- Not without hand-porting its classes and rebuilding the Symfony dependency-injection wiring it relies on. At that point you have written your own package rather than adopted this one. The technical evaluation recommends rejecting it for Laravel codebases and evaluating Laravel-native enum options instead.
- Does fervo/enum-bundle support Laravel 10 or Laravel 11?
- There is no Laravel version support to speak of because the package targets Symfony, not Laravel. Its last release was October 2022, and its Composer constraints almost certainly do not declare modern Symfony or Laravel versions. Installing it in Laravel 10 or 11 would not provide framework integration.
- What does fervo/enum-bundle actually do?
- It provides reusable Symfony form types, a Doctrine DBAL type for enum mapping, a validator constraint, and helpers for converting enum cases to and from scalar values. The goal is to reduce boilerplate when using PHP 8.1 backed enums across forms, entities, and requests. Most of that surface area is now covered by Symfony and Doctrine core features.
- Is fervo/enum-bundle still maintained?
- No active maintenance is evident: the last release was October 2022, with roughly 11 stars and zero dependents. That means no production signal, no downstream bug reports, and a bus factor of one. Security response time is effectively undefined.
- What are the best alternatives to fervo/enum-bundle for Laravel?
- Use Laravel's native features: backed-enum casts in Eloquent, the Illuminate\Validation\Rules\Enum rule, and enum-aware form requests and API resources. For query scopes and labels, small custom helper methods are usually enough. This avoids adding an unmaintained Symfony bundle to a Laravel app.
- Does fervo/enum-bundle work with Symfony 7 or Doctrine ORM 3?
- Unlikely without patching. The October 2022 release predates Symfony 7 and late Symfony 6.4, and its composer.json probably does not declare those versions. Even where installation can be forced, Symfony Form and Doctrine ORM now ship native enum support, so the bundle competes with core.
- How do I install fervo/enum-bundle?
- In a Symfony app you would run composer require fervo/enum-bundle and register the bundle in config/bundles.php. In Laravel there is no installation path because there is no service provider or package discovery. For Laravel, do not add it; implement enum handling with native casts and validation.
- Is fervo/enum-bundle safe for production use?
- The technical evaluation flags several production risks: abandonment since 2022, a bus factor of one, no CVE monitoring, and silent-failure modes in enum coercion, Doctrine hydration, and serialization. For Laravel the framework mismatch is blocking. For Symfony, treat it as a reference implementation rather than a dependency.
- How should I handle enums in Laravel without this package?
- Define PHP 8.1 backed enums, cast them on Eloquent models, validate them with the Enum rule, and serialize them explicitly in API resources. Add small helpers only where they remove real repetition. This keeps enum behavior consistent and avoids an unmaintained Symfony bundle.