Overview of neomerx/json-api
masterThe neomerx/json-api package is a framework-agnostic PHP implementation of the JSON API specification version v1.1. It helps developers focus on core application logic by handling the complexities of the protocol, including:
- Resource Management: Handling attributes, relationships, and polymorphic resource data.
- Document Structure: Supporting compound documents with included related resources (including circular references) and meta information.
- HTTP Compliance: Parsing
AcceptandContent-Typeheaders (RFC 7231) and automatically responding with415 Unsupported Media Typeor406 Not Acceptablefor invalid requests. - Query Parameters: Parsing pagination, sorting, sparse fieldsets, and customized included paths.
- Error Handling: Standardized error responses according to the specification.
It is production-ready with 100% test coverage.