├── .codeclimate.yml ├── .github ├── FUNDING.yml └── workflows │ └── php.yml ├── .gitignore ├── .php-cs-fixer.php ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── composer.json ├── examples ├── compound_doc.php └── simple_doc.php ├── phpunit.xml.dist ├── src ├── Attribute.php ├── CompoundDocument.php ├── DataDocument.php ├── EmptyRelationship.php ├── Error.php ├── Error │ ├── Code.php │ ├── Detail.php │ ├── Id.php │ ├── SourceParameter.php │ ├── SourcePointer.php │ ├── Status.php │ └── Title.php ├── ErrorDocument.php ├── Included.php ├── Internal │ ├── Attachable.php │ ├── BaseResource.php │ ├── Collection.php │ ├── DataDocumentMember.php │ ├── ErrorDocumentMember.php │ ├── ErrorMember.php │ ├── Identifier.php │ ├── LinkTrait.php │ ├── MetaDocumentMember.php │ ├── PaginationLink.php │ ├── PrimaryData.php │ ├── RelationshipMember.php │ ├── ResourceField.php │ ├── ResourceFieldTrait.php │ ├── ResourceMember.php │ ├── ToManyMember.php │ └── ToOneMember.php ├── JsonApi.php ├── Link │ ├── AboutLink.php │ ├── FirstLink.php │ ├── LastLink.php │ ├── NextLink.php │ ├── PrevLink.php │ ├── RelatedLink.php │ └── SelfLink.php ├── Meta.php ├── MetaDocument.php ├── NewResourceObject.php ├── NullData.php ├── PaginatedCollection.php ├── Pagination.php ├── ResourceCollection.php ├── ResourceIdentifier.php ├── ResourceIdentifierCollection.php ├── ResourceObject.php ├── ToMany.php ├── ToNull.php ├── ToOne.php └── functions.php └── test ├── BaseTestCase.php ├── CompoundDocumentTest.php ├── DataDocument ├── ManyResourceIdentifiersTest.php ├── ManyResourceObjectsTest.php ├── NullDataTest.php ├── SingleResourceIdentifierTest.php └── SingleResourceObjectTest.php ├── ErrorDocumentTest.php ├── ExamplesTest.php ├── JsonApiTest.php ├── LinkObjectTest.php ├── MetaDocumentTest.php ├── MetaTest.php ├── NewResourceObjectTest.php ├── PaginationTest.php ├── ResourceIdentifierTest.php ├── ResourceObjectTest.php └── benchmarks └── compound10k.php /.codeclimate.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/.codeclimate.yml -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | custom: "https://www.paypal.me/f3ath" 2 | 3 | -------------------------------------------------------------------------------- /.github/workflows/php.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/.github/workflows/php.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/.gitignore -------------------------------------------------------------------------------- /.php-cs-fixer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/.php-cs-fixer.php -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/composer.json -------------------------------------------------------------------------------- /examples/compound_doc.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/examples/compound_doc.php -------------------------------------------------------------------------------- /examples/simple_doc.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/examples/simple_doc.php -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /src/Attribute.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Attribute.php -------------------------------------------------------------------------------- /src/CompoundDocument.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/CompoundDocument.php -------------------------------------------------------------------------------- /src/DataDocument.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/DataDocument.php -------------------------------------------------------------------------------- /src/EmptyRelationship.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/EmptyRelationship.php -------------------------------------------------------------------------------- /src/Error.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Error.php -------------------------------------------------------------------------------- /src/Error/Code.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Error/Code.php -------------------------------------------------------------------------------- /src/Error/Detail.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Error/Detail.php -------------------------------------------------------------------------------- /src/Error/Id.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Error/Id.php -------------------------------------------------------------------------------- /src/Error/SourceParameter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Error/SourceParameter.php -------------------------------------------------------------------------------- /src/Error/SourcePointer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Error/SourcePointer.php -------------------------------------------------------------------------------- /src/Error/Status.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Error/Status.php -------------------------------------------------------------------------------- /src/Error/Title.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Error/Title.php -------------------------------------------------------------------------------- /src/ErrorDocument.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/ErrorDocument.php -------------------------------------------------------------------------------- /src/Included.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Included.php -------------------------------------------------------------------------------- /src/Internal/Attachable.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Internal/Attachable.php -------------------------------------------------------------------------------- /src/Internal/BaseResource.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Internal/BaseResource.php -------------------------------------------------------------------------------- /src/Internal/Collection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Internal/Collection.php -------------------------------------------------------------------------------- /src/Internal/DataDocumentMember.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Internal/DataDocumentMember.php -------------------------------------------------------------------------------- /src/Internal/ErrorDocumentMember.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Internal/ErrorDocumentMember.php -------------------------------------------------------------------------------- /src/Internal/ErrorMember.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Internal/ErrorMember.php -------------------------------------------------------------------------------- /src/Internal/Identifier.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Internal/Identifier.php -------------------------------------------------------------------------------- /src/Internal/LinkTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Internal/LinkTrait.php -------------------------------------------------------------------------------- /src/Internal/MetaDocumentMember.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Internal/MetaDocumentMember.php -------------------------------------------------------------------------------- /src/Internal/PaginationLink.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Internal/PaginationLink.php -------------------------------------------------------------------------------- /src/Internal/PrimaryData.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Internal/PrimaryData.php -------------------------------------------------------------------------------- /src/Internal/RelationshipMember.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Internal/RelationshipMember.php -------------------------------------------------------------------------------- /src/Internal/ResourceField.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Internal/ResourceField.php -------------------------------------------------------------------------------- /src/Internal/ResourceFieldTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Internal/ResourceFieldTrait.php -------------------------------------------------------------------------------- /src/Internal/ResourceMember.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Internal/ResourceMember.php -------------------------------------------------------------------------------- /src/Internal/ToManyMember.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Internal/ToManyMember.php -------------------------------------------------------------------------------- /src/Internal/ToOneMember.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Internal/ToOneMember.php -------------------------------------------------------------------------------- /src/JsonApi.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/JsonApi.php -------------------------------------------------------------------------------- /src/Link/AboutLink.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Link/AboutLink.php -------------------------------------------------------------------------------- /src/Link/FirstLink.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Link/FirstLink.php -------------------------------------------------------------------------------- /src/Link/LastLink.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Link/LastLink.php -------------------------------------------------------------------------------- /src/Link/NextLink.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Link/NextLink.php -------------------------------------------------------------------------------- /src/Link/PrevLink.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Link/PrevLink.php -------------------------------------------------------------------------------- /src/Link/RelatedLink.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Link/RelatedLink.php -------------------------------------------------------------------------------- /src/Link/SelfLink.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Link/SelfLink.php -------------------------------------------------------------------------------- /src/Meta.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Meta.php -------------------------------------------------------------------------------- /src/MetaDocument.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/MetaDocument.php -------------------------------------------------------------------------------- /src/NewResourceObject.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/NewResourceObject.php -------------------------------------------------------------------------------- /src/NullData.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/NullData.php -------------------------------------------------------------------------------- /src/PaginatedCollection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/PaginatedCollection.php -------------------------------------------------------------------------------- /src/Pagination.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/Pagination.php -------------------------------------------------------------------------------- /src/ResourceCollection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/ResourceCollection.php -------------------------------------------------------------------------------- /src/ResourceIdentifier.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/ResourceIdentifier.php -------------------------------------------------------------------------------- /src/ResourceIdentifierCollection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/ResourceIdentifierCollection.php -------------------------------------------------------------------------------- /src/ResourceObject.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/ResourceObject.php -------------------------------------------------------------------------------- /src/ToMany.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/ToMany.php -------------------------------------------------------------------------------- /src/ToNull.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/ToNull.php -------------------------------------------------------------------------------- /src/ToOne.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/ToOne.php -------------------------------------------------------------------------------- /src/functions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/src/functions.php -------------------------------------------------------------------------------- /test/BaseTestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/test/BaseTestCase.php -------------------------------------------------------------------------------- /test/CompoundDocumentTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/test/CompoundDocumentTest.php -------------------------------------------------------------------------------- /test/DataDocument/ManyResourceIdentifiersTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/test/DataDocument/ManyResourceIdentifiersTest.php -------------------------------------------------------------------------------- /test/DataDocument/ManyResourceObjectsTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/test/DataDocument/ManyResourceObjectsTest.php -------------------------------------------------------------------------------- /test/DataDocument/NullDataTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/test/DataDocument/NullDataTest.php -------------------------------------------------------------------------------- /test/DataDocument/SingleResourceIdentifierTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/test/DataDocument/SingleResourceIdentifierTest.php -------------------------------------------------------------------------------- /test/DataDocument/SingleResourceObjectTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/test/DataDocument/SingleResourceObjectTest.php -------------------------------------------------------------------------------- /test/ErrorDocumentTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/test/ErrorDocumentTest.php -------------------------------------------------------------------------------- /test/ExamplesTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/test/ExamplesTest.php -------------------------------------------------------------------------------- /test/JsonApiTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/test/JsonApiTest.php -------------------------------------------------------------------------------- /test/LinkObjectTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/test/LinkObjectTest.php -------------------------------------------------------------------------------- /test/MetaDocumentTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/test/MetaDocumentTest.php -------------------------------------------------------------------------------- /test/MetaTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/test/MetaTest.php -------------------------------------------------------------------------------- /test/NewResourceObjectTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/test/NewResourceObjectTest.php -------------------------------------------------------------------------------- /test/PaginationTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/test/PaginationTest.php -------------------------------------------------------------------------------- /test/ResourceIdentifierTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/test/ResourceIdentifierTest.php -------------------------------------------------------------------------------- /test/ResourceObjectTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/test/ResourceObjectTest.php -------------------------------------------------------------------------------- /test/benchmarks/compound10k.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-api-php/json-api/HEAD/test/benchmarks/compound10k.php --------------------------------------------------------------------------------