Download the PHP package rafrsr/generic-api without Composer
On this page you can find all versions of the php package rafrsr/generic-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rafrsr/generic-api
More information about rafrsr/generic-api
Files in rafrsr/generic-api
Package generic-api
Short Description API Abstraction layer with mocks
License MIT
Homepage http://rafrsr.github.io/generic-api/
Informations about the package generic-api
Generic API
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.
All versions of generic-api with dependencies
guzzlehttp/guzzle Version ^6.3|^7.0
symfony/validator Version ^5.4|^6.0
symfony/event-dispatcher Version ^5.4|^6.0
doctrine/annotations Version ^1.7
doctrine/cache Version ^1.4|^2.0
symfony/cache Version ^5.4|^6.0
symfony/property-access Version ^5.4|^6.0
jms/serializer Version ~0.11|~1.0|~2.0|~3.0