0.15.0

@greydnls greydnls released this Dec 28, 2016

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

Downloads

0.14.0

@greydnls greydnls released this Jul 21, 2016 · 30 commits to master since this release

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

Downloads

0.13.0

@willishq willishq released this Oct 7, 2015 · 60 commits to master since this release

Added

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

Changed

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

Enhancements

  • Short array syntax throughout
  • Test improvements

Downloads

0.12.0

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

Added

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

Changed

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

Removed

  • 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.

Downloads

0.11.0

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

Added

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

Fixed

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

Downloads

0.10.0

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

Features:

  • 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.

Bugs:

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

Downloads

0.9.0

@philsturgeon philsturgeon released this Jul 6, 2014 · 233 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.

Downloads

0.8.3

@philsturgeon philsturgeon released this Jun 14, 2014 · 239 commits to master since this release

Features:

  • Default Includes no longer need to be in Available Includes. Issue #58

Downloads

0.8.2

@philsturgeon philsturgeon released this Jun 9, 2014 · 242 commits to master since this release

  • Fixed Invalid argument supplied for foreach()

Downloads