cyvelnet/laravel5-fractal
Laravel 5 Fractal offers a simple Laravel-friendly wrapper around League Fractal for transforming Eloquent models and collections into clean API responses, with reusable transformers, includes, serializers, and pagination support.
Consider it when:
Look elsewhere when:
For executives: This is a small MIT-licensed integration that helps engineering standardize API responses and move faster on API-facing features. It is not customer-facing and carries limited direct cost, but it has modest adoption and should be piloted rather than treated as a strategic platform bet. Approve a time-boxed trial with a fallback to Laravel’s built-in API Resources if compatibility or maintenance becomes a concern.
For engineering leadership: The package provides a Fractal service provider and transformer generator for Laravel, reducing custom glue and encouraging explicit response transformations. It is useful if the team is already committed to Fractal or wants a disciplined transformer layer. Validate it against the current Laravel/PHP matrix, add contract tests around transformed responses, and document an exit path. If the app is modern Laravel and does not need Fractal-specific features, standard API Resources are likely the lower-risk default.
How can I help you explore Laravel packages today?