Fractal Versions Save

Output complex, flexible, AJAX/RESTful data structures.

0.20.1

2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/thephpleague/fractal/compare/0.20...0.20.1

0.20

2 years ago

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

What's Changed

New Contributors

Full Changelog: https://github.com/thephpleague/fractal/compare/0.19.2...0.20

0.19.2

4 years ago

0.19.1

4 years ago
  • Allow sub relations with modifier #490 - thanks @onursimsek - docs
  • Update TravisCI to allow failures on PHP 5.4 and 5.5 - thanks @matthewtrask

0.19

4 years ago
  • Allow sub relations with modifier #490 - thanks @onursimsek - docs
  • Update TravisCI to allow failures on PHP 5.4 and 5.5 - thanks @matthewtrask

0.18.0

5 years ago

Enhancements

  • Allow PHPUnit 7+ where available - Thanks @ramsey
  • Changed the paginator to not call $paginator->getPaginate() in PhalconFrameworkPaginatorAdapter constructor - Thanks @niden
  • Output an object for attributes when none are provided instead of an array in JsonApiSerializer - Thanks @BastianHofmann
  • Include meta key for relationships in JsonApiSerializer - Thanks @rawaludin
  • Allow self link to override defaults in JsonApiSerializer - Thanks @biggator
  • Preserve numeric keys when converting Scopes to arrays by using array union instead of array_merge - Thanks @andrewtweber
  • Output an object for links when none are provided instead of an array in ArraySerializer pagination - Thanks @basavind
  • Allow arrays for field lists in $fractal->parseFieldsets() - Thanks @flugger
  • Add links for all available includes to JsonApiSerializer - Thanks @matt-allan

0.17.0

6 years ago
  • Add ScopeFactoryInterface and ScopeFactory
  • Add $options parameter to toJson
  • Added Serializer interface to SerializerAbstract
  • Add Primitive resource type, allows to use primitives
  • optimized primitive transformation when transformer is not given

0.16.0

7 years ago

Enhancements:

  • #358 Allow the ability to define meta on each object in collection
  • #362 Add DoctrinePaginatorAdapter to interface with Doctrine pagination
  • Implement sparse fieldset

0.15.0

7 years ago
  • Custom links in serializer
  • PhalconPHP Paginator
  • tested on 7.1

0.14.0

7 years ago

Added

  • null() method for serializing null resource.
  • Adds pagination to JsonApiSerializer
  • Added JSON-API serializer collection links

Enhancements

  • Fix issue including relationships on collections
  • TransformerAbstract now returns a ResourceInterface
  • getIncludeParams now always return ParamBag
  • cody styling, method naming and docs