bensondevs/supercharged-enums
Supercharged Enums adds helpful, expressive methods to PHP 8.1+ enums so you can do more with less code in your Laravel apps. It keeps enum logic clean and readable, with a simple API for common tasks like labels, comparisons, and validation.
EnumExtension trait. This is a low-risk "buy" (composer require) decision that removes a recurring 20–60 line per-enum invention tax across teams.make:enum stub means new enums are correctly wired by default rather than relying on tribal knowledge. Relevant to any decision about hiring ramp-up time, contractor onboarding, or "why is our codebase inconsistent" retro items.boost:install is a zero-effort yes.resources/boost/ and validating their structure in tests is a maturity indicator. Useful evidence when judging whether a dependency will rot or be maintained.Adopt when:
make:enum producing pre-wired EnumExtension) so the convention survives turnover and AI-generated pull requests.Look elsewhere or defer when:
Enum methods, or a Enumable cast in an internal package). Two competing conventions is worse than one imperfect one.casts and a lookup-table design separately.To executives (one paragraph): This is a small, free, developer-experience package that standardises how our application represents business states — order statuses, user roles, plan tiers — so the same behaviour isn't rebuilt slightly differently in every feature. Version 0.2.0 makes it self-installing: new enums are generated correctly by our existing tooling, and it now registers with our AI coding assistants so generated code follows our conventions instead of inventing new ones. Cost is near zero (no infrastructure, no migrations, one Composer dependency); the return is consistency, faster onboarding, and less review churn. It is pre-1.0, so we pin the version and treat upgrades as deliberate.
To engineering leadership: Single trait (EnumExtension) applied to backed enums; service provider auto-registered via package discovery; opt-in stub publishing via one artisan command. No runtime services or database footprint. Boost skill and guidelines ship in-repo and are test-validated, so they won't silently drift. Ask: (1) do we consolidate on this trait or keep our internal one? (2) who owns the version-pin and upgrade review? (3) do we publish the stubs, or accept defaults?
To engineering (implementation note): Two commands to evaluate — php artisan vendor:publish --tag=supercharged-enums-stubs then php artisan make:enum Status --string; verify the generated file matches house style before rolling out. Confirm whether boost:update --discover is part of your AI tooling setup so the skill is picked up rather than sitting unused.
How can I help you explore Laravel packages today?