michaeldrennen/jsonapi
最新稳定版本:v2.0.1
Composer 安装命令:
composer require michaeldrennen/jsonapi
包简介
A framework agnostic PHP library that implements some of the json:api specification.
README 文档
README
This is a PHP library for those wanting to build an API and return structured data to the requesting client.
// This $user is the object we want to return to the client requesting the User data. $user = new User( 74, "Mike", TRUE ); // Create the response object, set the $user as the data you want to return, and // specify the Transformer you want to use to munge the User data. $array = \MichaelDrennen\JSONAPI\Response::create() ->setData( $user ) ->transformWith( new UserTransformer() ) ->toArray();
统计信息
- 总下载量: 4.53k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-05-29