Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/json-api-php/json-api
Implementation of JSON API in PHP
https://github.com/json-api-php/json-api
hacktoberfest json json-api jsonapi library php php7 psr
Last synced: about 1 month ago
JSON representation
Implementation of JSON API in PHP
- Host: GitHub
- URL: https://github.com/json-api-php/json-api
- Owner: json-api-php
- License: mit
- Created: 2017-03-28T05:38:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-07-27T01:11:02.000Z (over 2 years ago)
- Last Synced: 2024-10-12T05:15:22.299Z (2 months ago)
- Topics: hacktoberfest, json, json-api, jsonapi, library, php, php7, psr
- Language: PHP
- Homepage: https://json-api-php.github.io/
- Size: 203 KB
- Stars: 183
- Watchers: 9
- Forks: 18
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-resources - JSON API
README
# [JSON API](http://jsonapi.org) spec implemented in PHP 7. Immutable
The goal of this library is to ensure strict validity of JSON API documents being produced.
JSON:
```json
{
"data": {
"type": "articles",
"id": "1",
"attributes": {
"title": "Rails is Omakase"
},
"relationships": {
"author": {
"data": {
"type": "people",
"id": "9"
},
"links": {
"self": "/articles/1/relationships/author",
"related": "/articles/1/author"
}
}
}
}
}
```
PHP:
```php