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

Commit

Permalink
Merge branch '1.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
Joan Fabrégat committed May 3, 2018
2 parents b35f444 + d396633 commit 67a4808
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 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,12 +25,6 @@ This library is available through [Packagist](https://packagist.org/packages/cod
composer require codeinc/psr7-responses
```

## Recommended libraries

* [`codeinc/psr7-response-sender`](https://github.com/CodeIncHQ/Psr7ResponseSender) is recommended to stream PSR-7 responses to the web browser.
* [`codinc/router`](https://github.com/CodeIncHQ/Router) is recommended as a router and request handler PSR-15


## License

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

0 comments on commit 67a4808

Please sign in to comment.