Download the PHP package flarum/json-api-server without Composer
On this page you can find all versions of the php package flarum/json-api-server. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package json-api-server
json-api-server
json-api-server is a JSON:API server implementation in PHP.
It allows you to build a feature-rich API by defining resource schema and connecting it to your application's database layer.
Based on your schema definition, the package will serve a complete API that conforms to the JSON:API specification, including support for:
- Showing individual resources (
GET /articles/1
) - Listing resource collections (
GET /articles
) - Sorting, filtering, pagination, and sparse fieldsets
- Compound documents with inclusion of related resources
- Creating resources (
POST /articles
) - Updating resources (
PATCH /articles/1
) - Deleting resources (
DELETE /articles/1
) - Content negotiation
- Error handling
- Extensions including Atomic Operations
- Generating OpenAPI definitions
Documentation
Example
The following example uses an Eloquent model in a Laravel application. However, json-api-server can be used with any framework that can deal in PSR-7 Requests and Responses. Custom behavior can be implemented to support other ORMs and data persistence layers.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
MIT
All versions of json-api-server with dependencies
ext-json Version *
asispts/http-accept Version ^1.0
doctrine/inflector Version ^2.0
nyholm/psr7 Version ^1.8
psr/http-message Version ^1.0
psr/http-server-handler Version ^1.0