定制 cfxmarkets/php-jsonapi-transport 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cfxmarkets/php-jsonapi-transport

Composer 安装命令:

composer require cfxmarkets/php-jsonapi-transport

包简介

This package implements the JSON-API transport protocol specification (i.e., it enforces certain request and response parameters).

README 文档

README

A class that provides a PHP implementation of JSON API transport objects. Note, while this includes an implementation of JsonApi objects as a dependency, it focuses specifically on classes that implement the transport protocol defined in the json-api spec.

Overview

This package focuses on implementing Request and Response classes that make it easier to validate incoming and outgoing JSON-API messages. It defines interfaces that extend PSR-7, a set of traits that may be used to implement these extensions, and a set of concrete classes extended from Guzzle's PSR-7 implementation.

Usage

Most of the time, this will be used to receive requests from an API client. To do this, you'll create a ServerRequest object, then add the incoming JsonApi document using withJsonApiDoc. (Note: Guzzle's original implementation doesn't support use of the ServerRequest::fromGlobals method to instantiate derivative objects. To use this, you'll have to use a modified implementation, such as my fork at https://github.com/kael-shipman/psr7. See the discussion here.

统计信息

  • 总下载量: 320
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 10
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 6
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-06-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固