This PHP 7.1 library provides a collection of PSR-7 compatible responses based on the Guzzle implementation.
The collection includes:
EmptyResponse
ErrorResponse
FileResponse
ForbiddenResponse
HtmlResponse
HttpProxyResponse
JsonResponse
LocalFileResponse
NotFoundResponse
NotModifiedResponse
RedirectResponse
StreamResponse
TextResponse
UnauthorizedResponse
XmlResponse
This library is available through Packagist and can be installed using Composer:
composer require codeinc/psr7-responses
The library is published under the MIT license (see LICENSE
file).