gathercontent/laravel-fractal
A Laravel wrapper for the Fractal library that helps you transform Eloquent models, collections, and paginators into clean API responses with support for includes, serializers, and flexible resource transformations.
Architecture fit
league/fractal's Manager into the container and exposes it via a facade and helper functions. This is idiomatic Laravel (IoC + facade) and imposes no opinion on domain architecture.JsonResource.Integration feasibility
league/fractal.Technical risk
league/fractal itself has slowed in release cadence; Laravel's native Eloquent API Resources cover much of the same ground, so long-term relevance is uncertain.league/fractal can conflict with other packages.include resolution can introduce hidden N+1 query patterns if not audited.Key questions
composer.json, and does that cover our target runtime?Stack fit
league/fractal major.Migration path
JsonResource classes, so treat transformers as a bounded presentation layer, not core domain code.Compatibility
league/fractal to a tested minor and monitor upstream; run composer why-not checks in the upgrade pipeline.Sequencing
Maintenance
Support
league/fractal documentation for transformer/serializer semantics, not the wrapper.Scaling
Failure modes
Ramp-up
How can I help you explore Laravel packages today?