Download the PHP package hyperf-ext/json-api without Composer
On this page you can find all versions of the php package hyperf-ext/json-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hyperf-ext/json-api
More information about hyperf-ext/json-api
Files in hyperf-ext/json-api
Package json-api
Short Description JSON API (jsonapi.org) support for Hyperf applications.
License Apache-2.0
Homepage https://github.com/hyperf-ext/json-api
Informations about the package json-api
Hyperf {JSON:API} 组件
Build feature-rich and standards-compliant APIs in Hyperf.
This package is ported from cloudcreativity/laravel-json-api.
This package provides all the capabilities you need to add JSON API compliant APIs to your application. Extensive support for the specification, including:
- Fetching resources
- Fetching relationships
- Inclusion of related resources (compound documents)
- Sparse fieldsets.
- Sorting.
- Pagination.
- Filtering
- Creating resources.
- Updating resources.
- Updating relationships.
- Deleting resources.
- Validation of:
- JSON API documents; and
- Query parameters.
The following additional features are also supported:
- Full support for Hyperf model resources, with features such as:
- Automatic eager loading when including related resources.
- Easy relationship end-points.
- Soft-deleting and restoring model resources.
- Page and cursor based pagination.
- Asynchronous processing.
- Support multiple media-types within your API.
- Generators for all the classes you need to add a resource to your API.
What is JSON API?
From jsonapi.org
If you've ever argued with your team about the way your JSON responses should be formatted, JSON API is your anti-bikeshedding weapon.
By following shared conventions, you can increase productivity, take advantage of generalized tooling, and focus on what matters: your application. Clients built around JSON API are able to take advantage of its features around efficiently caching responses, sometimes eliminating network requests entirely.
For full information on the spec, plus examples, see http://jsonapi.org.
Documentation
@todo
License
Apache License (Version 2.0). Please see License File for more information.
Installation
Configuration
Publish configuration file:
The default configuration:
All versions of json-api with dependencies
ext-json Version *
ext-intl Version *
ext-swoole Version >=4.5
hyperf-ext/auth Version ~2.2.0
hyperf-ext/http-server-router Version ~2.2.0
hyperf/async-queue Version ~2.2.0
hyperf/command Version ~2.2.0
hyperf/config Version ~2.2.0
hyperf/contract Version ~2.2.0
hyperf/database Version ~2.2.0
hyperf/db-connection Version ~2.2.0
hyperf/di Version ~2.2.0
hyperf/filesystem Version ~2.2.0
hyperf/framework Version ~2.2.0
hyperf/guzzle Version ~2.2.0
hyperf/http-server Version ~2.2.0
hyperf/logger Version ~2.2.0
hyperf/paginator Version ~2.2.0
hyperf/translation Version ~2.2.0
hyperf/utils Version ~2.2.0
hyperf/validation Version ~2.2.0
neomerx/json-api Version ^1.0
ramsey/uuid Version ^4.1