mane-olawale / rest-response
Base response classes for Rest API SDKs.
Installs: 8 444
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- guzzlehttp/guzzle: ~6|~7
Requires (Dev)
- phpunit/phpunit: ^8.4|^9.5
README
Rest Response
Extended response classes for Rest API clients/SDKs.
About
This package is intended to be component of SDKs so the responses can be easily worked with. it support callbacks for handling errors or success, provides methods to check status code better and working with lists and paginations.
Extends Guzzle Response.
Requirements
- PHP >= 7.2
- Guzzlehttp ~6|~7
Installation
Via Composer.
PHP 7.2+:
composer require mane-olawale/rest-response
You now have Rest Response Classes in vendor/mane-olawale/rest-response
And an handy autoload file to include in your project in vendor/autoload.php
Usage
I will document it when i have strength