spatie/enum
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().
Executives: "This package is obsolete. PHP 8.1+ includes native enums that deliver identical functionality without extra dependencies, reducing maintenance costs and technical debt. Adopting native enums future-proofs our codebase, eliminates vendor lock-in, and aligns with industry standards. We recommend migrating existing usage immediately to avoid unnecessary overhead."
Engineering: "Native PHP enums (8.1+) are now the standard implementation. This package adds no value for modern PHP versions—it's redundant, increases dependency surface area, and complicates maintenance. Migrate all existing enum usage to native implementations: it requires minimal code changes, removes a dependency, and leverages PHP's built-in type safety and IDE support."
How can I help you explore Laravel packages today?