- Add links for all available includes to
JsonApiSerializer#331 - Thanks @matt-allan - Implement interface
\JsonSerializablein Scopes to allow for direct usage withjson_encode()
- Allow PHPUnit 7+ where available - Thanks @ramsey
- Changed the paginator to not call
$paginator->getPaginate()inPhalconFrameworkPaginatorAdapterconstructor - Thanks @niden - Output an object for
attributeswhen none are provided instead of an array inJsonApiSerializer- Thanks @BastianHofmann - Include
metakey for relationships inJsonApiSerializer- Thanks @rawaludin - Allow
selflink to override defaults inJsonApiSerializer- Thanks @biggator - Preserve numeric keys when converting
Scopes to arrays by using array union instead of array_merge - Thanks @andrewtweber - Output an object for
linkswhen none are provided instead of an array inArraySerializerpagination - Thanks @basavind - Allow arrays for field lists in
$fractal->parseFieldsets()- Thanks @flugger
- 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
- #358 Allow the ability to define meta on each object in collection
- #362 Add DoctrinePaginatorAdapter to interface with Doctrine pagination
- Implement sparse fieldset
- Custom links in serializer
- PhalconPHP Paginator
- tested on 7.1
null()method for serializing null resource.- Adds pagination to
JsonApiSerializer - Added JSON-API serializer collection links
- Fix issue including relationships on collections
TransformerAbstractnow returns aResourceInterfacegetIncludeParamsnow always returnParamBag- cody styling, method naming and docs
->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
- 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()andgetTransformer()fromLeague\Fractal\Resource\Collectionas they were already defined inResourceAbstract.
- Added
League\Fractal\Pagination\PagerfantaPaginatorAdapterto support Pagerfanta - Added
League\Fractal\Pagination\ZendFrameworkPaginatorAdapterto support Zend Framework Paginator
- Now JSON-API linked items will be unique based on their ID Issue #126
- Added
ParamBagto 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 againstResourceInterfacenotResourceAbstract.
- Using ArraySerializer without a resource key would lead to an empty string as a key in JSON. Issue #78
- Implemented serializer methods for item and collection separately Issue #71
- Default Includes no longer need to be in Available Includes. Issue #58
- A
nullvalue forManager::parseIncludes()could have weird results
- Make
ResourceAbstractimplementResourceInterface
- Fixed tests for Laravel 4.2 usage
- Added Serializers with ArraySerializer, DataArraySerializer (default) and a provisional JsonApiSerializer. See Issue #47
- Added
ResourceAbstract::setMeta('foo', mixed)to allow custom meta data - Replaced
Manager::setRequestedScopes()withManager::parseIncludes('foo,bar')which can be an array or CSV string. It can also take "Smart Syntax" such asManager::parseIncludes('bars:limit(5|1):order(-something)'), which can come from a URL query param:/foo?include=bars:limit(5|1):order(-something) - Made all pagination (paginators and cursors) use meta output logic, so it sits with your custom meta data
- Moved
League\Fractal\Cursor\CursorandLeague\Fractal\Cursor\CursorInterfaceintoLeague\Fractal\Pagination
- Added Cursor, as a different approach to paginating large data sets
- Switched from PSR-0 to PSR-4
- Adds a
PaginatorInterface, with aIlluminatePaginatorAdapterto let Fractal be framework agnostic
- Fixed PHP 5.3 support. Short array syntax will be the death of me
- Added
Collection::setPaginator().
- Removed
PaginatedCollection, useCollection::setPaginator()instead.
- Allow
$defaultEmbedto be enabled in a transformer, to always embed without requesting