@greydnls greydnls released this Aug 18, 2017 · 20 commits to master since this release

  • 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


@greydnls greydnls released this Apr 5, 2017 · 43 commits to master since this release


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


@greydnls greydnls released this Jan 17, 2017 · 57 commits to master since this release

  • Custom links in serializer
  • PhalconPHP Paginator
  • tested on 7.1


@greydnls greydnls released this Aug 29, 2016 · 87 commits to master since this release


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


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


@willishq willishq released this Oct 16, 2015 · 117 commits to master since this release


  • ->setData(...) and ->setTransformer(...) methods to resources
  • able to set url include parameters with no set variables, ie. include=comments:limit(5|1):new


  • Finally, much improved JSON-API support thanks to @felixkiss


  • Short array syntax throughout
  • Test improvements


@philsturgeon philsturgeon released this Mar 19, 2015 · 191 commits to master since this release


  • Added PHP 7.0-dev support.
  • Add the support for Laravel 5 paginator. Issue #153


  • Now accessing the default and available includes in Transformers via getters Issue #158


  • Dropped PHP 5.3 support. Use v0.11 if you're still stuck on PHP 5.3.
  • Removed getData() and getTransformer() from League\Fractal\Resource\Collection as they were already
    defined in ResourceAbstract.


@philsturgeon philsturgeon released this Dec 10, 2014 · 210 commits to master since this release


  • Added League\Fractal\Pagination\PagerfantaPaginatorAdapter to support Pagerfanta
  • Added League\Fractal\Pagination\ZendFrameworkPaginatorAdapter to support Zend Framework Paginator


  • Now JSON-API linked items will be unique based on their ID Issue #126


@philsturgeon philsturgeon released this Oct 17, 2014 · 243 commits to master since this release


  • Added ParamBag to replace the array passed to includes. It implements array access so keep using it as you were, or play with the new methods.


  • Removed PaginatorInterface::getPaginator() as it was used anymore. Issue #101
  • Manager::createData() argument 1 now hints against ResourceInterface not ResourceAbstract.


@philsturgeon philsturgeon released this Jul 6, 2014 · 290 commits to master since this release

Only one change this time around: Splitting Serializer methods for item and collection to be their own thing.

This was done to fix #71 as well as make life easier for people who want to make items and collections use some different logic. For example, JsonApiSerializer wants even a single item to appear inside an array, meaning we can wrap the data in the item() serializer method to do that, but keep it as an item in case anyone wants to switch to a different serializer.

See Serializers documentation for more information.