datomatic/laravel-enum-collections
Laravel Enum Collections extends Laravel’s Collection API to PHP enums, letting you wrap enum cases and use familiar filter, map, sort, group, pluck, and transform methods. It keeps enum-heavy Laravel code cleaner, more expressive, and easier to chain without extra boilerplate.
Collection::make definition. For any team with Laravel 13.3 on the roadmap, this release is the gate that determines whether the package can stay in the dependency list or must be patched, forked, or removed before the upgrade.Illuminate\Support\Collection. The release is evidence for the classic trade-off — you get upstream compatibility work done for you, but you inherit a dependency on framework internals that can break on minor Laravel releases.Consider adoption when:
Collection (custom collections, macros, pipeline helpers), and maintaining that yourself is not a differentiator.Look elsewhere — or wrap/fork — when:
Collection methods already cover the use case; adding a dependency for thin sugar is not worth the coupling.For executives: This is a small, low-cost utility dependency in the Laravel layer, and its latest patch (v3.4.2) is a compatibility fix for a change in Laravel 13.3. In plain terms: the maintainer is actively keeping it in step with the framework, which is what you want from a dependency of this kind. The decision it unlocks is whether we proceed with the Laravel 13.3 upgrade on schedule. Risk is low and contained — the package's footprint is narrow, and the worst case is a small patch or a local fork, not an architectural change.
For engineering: v3.4.2 fixes a break caused by Laravel v13.3 changing the Collection::make method definition. We should treat this as a maintenance patch, not a feature release: no new capabilities, no deprecations, no API changes on our side. Recommended actions: pin to ^3.4.2 in composer.json, run the upgrade branch against it before merging, and add a smoke test that exercises the collection path so the next upstream signature change fails loudly in CI rather than in production. Longer term, if we find ourselves patching this package more than once a year, that is the trigger to wrap it behind an internal interface or replace it with native Collection usage.
How can I help you explore Laravel packages today?