JsonApiReader Documentation

JsonApiReader is a PHP library to simplify working with json:api documents.

Hydration

Populate classes you have full control over with the data from <jsonapi /> documents.

Normalization

Map <jsonapi /> documents into nested hash maps allowing easy access to all contained resources by their type and id.

Structural Validation

Parsed json is ensured to be structurally valid <jsonapi /> data at every step.

Read the Guide to quickly get up and running or go in depth on the Hydration or the Normalization component!