Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

Commit

Permalink
adds the list of responses
Browse files Browse the repository at this point in the history
  • Loading branch information
Joan Fabrégat committed May 3, 2018
1 parent 71cd597 commit d396633
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
# PSR-7 responses

This PHP 7.2 library provides a collection of [PSR-7](https://www.php-fig.org/psr/psr-7/) compatible responses based on the [Guzzle implementation](https://github.com/guzzle/psr7).

This PHP 7.1 library provides a collection of [PSR-7](https://www.php-fig.org/psr/psr-7/) compatible responses based on the [Guzzle implementation](https://github.com/guzzle/psr7).

**The collection includes:**
* [`DebugResponse`](src/DebugResponse.php)
* [`ErrorResponse`](src/ErrorResponse.php)
* [`FileResponse`](src/FileResponse.php)
* [`ForbiddenResponse`](src/ForbiddenResponse.php)
* [`HtmlResponse`](src/HtmlResponse.php)
* [`HttpProxyResponse`](src/HttpProxyResponse.php)
* [`JsonResponse`](src/JsonResponse.php)
* [`NotFoundResponse`](src/NotFoundResponse.php)
* [`RedirectResponse`](src/RedirectResponse.php)
* [`StreamResponse`](src/StreamResponse.php)
* [`TextResponse`](src/TextResponse.php)
* [`UnauthorizedResponse`](src/UnauthorizedResponse.php)
* [`XmlResponse`](src/XmlResponse.php)

## Installation

Expand All @@ -11,11 +25,6 @@ This library is available through [Packagist](https://packagist.org/packages/cod
composer require codeinc/psr7-responses
```

## Recommended libraries

The [`codeinc/psr7-response-sender`](https://github.com/CodeIncHQ/Psr7ResponseSender) library is recommended to stream PSR-7 responses to the web browser.


## License

The library is published under the MIT license (see [`LICENSE`](LICENSE) file).

0 comments on commit d396633

Please sign in to comment.