rocketman/json-api-common

Basic php implementation (shared structures for client and server) of the json api specification (jsonapi.org)

v3.2.2+rocketman.1 2025-06-04 17:55 UTC

README

Build Status

license latest version

This is a fork of the upstream enm/json-api-common with post-release fixes.

It contains code shared by the JSON-API-Server and JSON-API-Client projects.

Installation

Generally, you will establish a composer dependency on json-api-server or json-api-client as appropriate, and they will in turn pull in this library. If you wish to include this library explicitly, you can do so like this:

composer require rocketman/json-api-common

Documentation

  1. JsonApiTrait
  2. Resources
    1. Relationships
  3. Attributes and Meta-Informations
  4. Links
  5. Documents
  6. Exceptions and Errors
  7. Request and Response

Changelog

See the Changelog.