Skip to content

v2.1.0: extensions, arrays of links, @-members (supporting specification v1.1)

Compare
Choose a tag to compare
@lode lode released this 03 Mar 12:23
623b0aa

Support for v1.1 of the JSON:API specification, including:

Extensions via profiles

Extending a document structure with profiles. See an example profile and a specific cursor pagination example:

$profile = new CursorPaginationProfile();
$document->applyProfile($profile);

Array of links under a single key

E.g. for type error links:

$errorObject->appendTypeLink('https://...');

@-members

Which can be used for JSON-LD for example. They can be added to any object:

$anything->addAtMember('foo', 'bar');