rafrsr/generic-api
最新稳定版本:v3.0.1
Composer 安装命令:
composer require rafrsr/generic-api
包简介
API Abstraction layer with mocks
README 文档
README
API Abstraction layer with mocks. Tools for creating structured SDKs or API implementations easy and following some simple guidelines.
Most APIs provide a SDK or API implementation library in parallel. But this not always true, or simply not made in our required language (php). For this cases is necessary implements the API from scratch. GenericApi is solution to keep things organized and follow a similar pattern for all libraries.
Features
- Guzzle: Use guzzle with psr7 for requests, responses, and streams.
- Mocks: Emulate request and response for test environments
- Validation: Symfony validations to validate a request before send any data to remote API
- Connection Abstraction: Only create the request, the connection is done automatically with guzzle, no more complicated curl connections.
- Xml and Json Parser: Can use XML and JSON parser to convert API response to objects using JMS serializer
- Scaffolding: Test API connection and any method using generic classes
Installation
- Install composer
- Execute:
composer require rafrsr/generic-api
Documentation
Full documentation are available on the wiki page
Functional Example
Can view a more complex example of functional API in the "sample" folder.
Copyright
This project is licensed under the MIT license.
统计信息
- 总下载量: 9.4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-02-02