Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Fractal Laravel Package

spatie/laravel-fractal

Laravel/Lumen wrapper for League Fractal to transform API data with a fluent, expressive syntax. Supports collections, includes, facades, and helper shortcuts to easily shape Eloquent results into consistent JSON-ready arrays.

View on GitHub
Deep Wiki
Context7
6.4.0

What's Changed

  • Add Laravel 13 support
6.3.3

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-fractal/compare/6.3.2...6.3.3

6.3.2

What's Changed

Full Changelog: https://github.com/spatie/laravel-fractal/compare/6.3.1...6.3.2

6.2.2

What's Changed

Full Changelog: https://github.com/spatie/laravel-fractal/compare/6.2.1...6.2.2

6.1.0

What's Changed

Full Changelog: https://github.com/spatie/laravel-fractal/compare/6.0.3...6.1.0

6.0.2
6.0.1
6.0.0
5.8.1
  • add support for PHP 8
5.8.0
  • add support for Laravel 8
5.7.0
  • add support for Laravel 7
5.6.1
  • update transformer stub (#200)
5.6.0
  • make compatible with Laravel 6
5.5.1
  • add Spatie\Fractal\Facades\Fractal
5.5.0
  • drop support for PHP 7.1
5.4.4
  • drop support for PHP 7.0
  • add support for Laravel 5.8
5.4.3
  • improve singleton definition
5.4.2
  • support Lumen
5.4.1
  • add support for Laravel 5.7
5.4.0
  • make fractal macroable
5.3.2
  • fixed #153
5.3.1
  • add support for L5.6
5.3.0
  • add transformWith collection macro
5.2.0
  • add compatibility with Lumen 5.5
5.1.0
  • allow json encoding options to be passed to the respond method
5.0.1
  • Fix wrongly tagged commit
5.0.0
  • Laravel 5.5 support, dropped support for all older versions
  • renamed config file from laravel-fractal to fractal
  • added auto-includes
4.5.0
  • add default_paginator to config file
4.4.0
  • add fractal_class to config file
4.3.0
  • Add baseUrl support for the JsonApi serializer
4.2.0
  • Nothing changed! Something went wrong with tagging the last version so we had to bump the version a bit?
4.0.1
  • Fixes bug where a passed serializer wouldn't be used
4.0.0
  • Add compatiblity with fractal 0.16 through fractalistic 2.0
3.5.0
  • Add compatiblity with Lumen
3.4.1
  • Fix resolving Fractal::class out of the container
3.4.0
  • Add support for passing paginators to the data argument of fractal()
3.3.1
  • Bind laravel-fractal as a singleton
3.3.0
  • Add support for Laravel 5.4
3.2.1
  • Improve descriptions of generator command
3.2.0
  • Allow closures to be used as serializers
3.1.3
  • Fixed missing namespace import in Fractal
3.1.2
  • The facade will now use the configured serializer
3.1.1
  • Fix wrong implementation of the respond method.

If you encounter errors when upgrading from 3.1.0 to this version, replace all usages of Spatie\Fractal\Response by Illuminate\Http\JsonResponse. All calls to the headers method on that class should be replaced by withHeaders.

3.1.0
  • Add respond method
3.0.1
  • Fix dependencies in composer.json
3.0.0
  • Make use of spatie/fractalistic
2.1.0
  • Add make:transformer artisan command.
2.0.0
  • Made compatible with fractal 0.14
  • Improvements to the fractal-helper function.
  • Added excludes
1.9.1
  • Added L5.3 compatibility
1.9.0
  • Added support for cursors
1.8.0
  • The Fractal-class now implements the JsonSerializable-interface
1.7.4
  • Fixed a bug when passing a null value to parseIncludes
1.7.3
  • Fixed bug when adding multiple includes in one go
1.7.2
  • Fix for adding multiple includes in one go.

** this version contains a bug when adding multiple includes in one go, please upgrade to v1.7.3 **

1.7.1
  • Fix for setting the default_serializer as an instantiation in Lumen
1.7.0
  • Allow default_serializer to be set as an instantiation
1.6.1
  • Dependency version number of fractal in composer.json
1.6.0
  • Compatiblity with version v0.13 of Fractal

Please not that the output of JsonApiSerializer has been changed in v0.13 of Fractal.

1.5.0
  • Support for including meta data
1.4.0
  • Pagination methods
  • Custom resource names
1.3.0
  • Support for Lumen
1.2.0
  • Methods to use includes
  • Create data method
1.1.0
  • Made the getResource-function public
1.0.0
  • Initial release
What's
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport