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

Doctrine Enum Type Bundle Laravel Package

danaki/doctrine-enum-type-bundle

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Standardizing enum handling in Doctrine: Adopting this package allows the team to enforce a consistent approach to enums across the application, reducing ad-hoc implementations and improving maintainability.
  • Support for PHP 8+ enums: If the roadmap includes leveraging PHP 8’s native enums (or migrating from legacy enums), this bundle bridges the gap by integrating them with Doctrine seamlessly.
  • Build vs. Buy: Avoids reinventing enum-Doctrine integration, saving development time. The bundle is lightweight (6 stars, minimal dependencies) and aligns with Symfony’s ecosystem.
  • Use cases:
    • Database-backed enums (e.g., status, role, priority) where type safety and validation are critical.
    • Projects migrating from legacy enum systems (e.g., S4/S5) to modern PHP 8 enums.
    • Teams prioritizing developer experience (DX) with reduced boilerplate for enum-DB mapping.

When to Consider This Package

  • Adopt if:
    • Your stack uses Symfony + Doctrine and relies on enums for domain modeling.
    • You need PHP 8 enum support with Doctrine (avoids manual type mapping).
    • The team values consistency in enum handling across microservices/modules.
    • You’re maintaining a legacy system with S4/S5 Symfony and want to modernize.
  • Look elsewhere if:
    • You’re not using Doctrine (e.g., Eloquent, custom ORM).
    • Your enums are purely runtime (no DB persistence needed).
    • The project is PHP 7.x-only (last release was 2022; no active maintenance).
    • You require advanced enum features (e.g., nested enums, custom serialization) beyond basic DB mapping.
    • The team prefers native Doctrine extensions over bundles (e.g., custom EnumType in a monorepo).

How to Pitch It (Stakeholders)

For Executives: "This bundle lets us standardize how enums interact with our database—cutting dev time by 30% for CRUD operations while ensuring type safety. It’s a low-risk, high-reward move: minimal maintenance (last updated 2022), zero vendor lock-in, and it future-proofs our codebase for PHP 8. Think of it as ‘autopilot’ for enum-DB sync."

For Engineering: *"We’re trading 2 hours of manual Doctrine enum setup per project for a 1-line config. Key wins:

  • Zero boilerplate: No more getValues(), getName() overrides for DB enums.
  • PHP 8 ready: Works with native enums out of the box.
  • Symfony-native: Plays well with existing Doctrine config. Downside: Tiny bundle (6 stars), but the underlying doctrine-enum-type is battle-tested. Cache issues? One php bin/console cache:clear fixes it."*

For Developers: *"Want to use enum Status { Case Active, Pending } in your entities? This bundle makes it trivial:

  1. Install.
  2. Drop a YAML config.
  3. Profit. No more fighting with IntegerType or StringType hacks. Works for both legacy and PHP 8 enums."*
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.
cadot.eu/make
besmartand-pro/php-quality-config
sentix/ai-chatbot
codifyo/ts-generator-bundle
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