Output complex, flexible, AJAX/RESTful data structures.
Full Changelog: https://github.com/thephpleague/fractal/compare/0.20...0.20.1
This release moves Fractal up to modern PHP.
We have dropped support for 5.x with this release. Fractal now supports PHP 7.4 as the lowest PHP version. Should you need to keep using Fractal with PHP 5.x, please use 0.19.2 or lower. We will continue to patch security fixes for 0.19 but all new features and changes will be in the 0.20 release and more going forward. We will aim for a 1.0 release this summer targeting 8.x
Full Changelog: https://github.com/thephpleague/fractal/compare/0.19.2...0.20
$paginator->getPaginate()
in PhalconFrameworkPaginatorAdapter
constructor - Thanks @nidenattributes
when none are provided instead of an array in JsonApiSerializer
- Thanks @BastianHofmannmeta
key for relationships in JsonApiSerializer
- Thanks @rawaludinself
link to override defaults in JsonApiSerializer
- Thanks @biggatorScope
s to arrays by using array union instead of array_merge - Thanks @andrewtweberlinks
when none are provided instead of an array in ArraySerializer
pagination - Thanks @basavind$fractal->parseFieldsets()
- Thanks @fluggerPrimitive
resource type, allows to use primitivesEnhancements:
null()
method for serializing null resource.TransformerAbstract
now returns a ResourceInterface
getIncludeParams
now always return ParamBag