codeinc / psr7-responses
This package is abandoned and no longer maintained.
No replacement package was suggested.
A collection of PSR-7 responses
2.1.2
2018-10-12 15:05 UTC
Requires
- php: >=7.2
- ext-json: *
- codeinc/error-renderer: ^1.1
- codeinc/media-types: ^1.0
- guzzlehttp/psr7: ^1.4
- psr/http-message: ^1.0
Requires (Dev)
Suggests
- codeinc/psr15-middlewares: Provides a collection of PSR15 middlewares
- codeinc/psr7-response-sender: A library to send PSR-7 responses to the web browser
- guzzlehttp/guzzle: Required in order to use HttpProxyResponse
- hansott/psr7-cookies: Adds cookies into a PSR7 response
- micheh/psr7-cache: Adds cache HTTP headers to responses
This package is auto-updated.
Last update: 2020-02-12 18:14:36 UTC
README
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
Installation
This library is available through Packagist and can be installed using Composer:
composer require codeinc/psr7-responses
License
The library is published under the MIT license (see LICENSE
file).