https://github.com/wecodein/response-sender-middleware
PSR-15 compliant implementation of middleware for converting PSR-7 Response to HTTP output.
https://github.com/wecodein/response-sender-middleware
http-middleware middleware php7 psr-15 psr-17
Last synced: about 2 months ago
JSON representation
PSR-15 compliant implementation of middleware for converting PSR-7 Response to HTTP output.
- Host: GitHub
- URL: https://github.com/wecodein/response-sender-middleware
- Owner: wecodein
- License: mit
- Created: 2017-06-24T23:28:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-28T12:25:34.000Z (about 7 years ago)
- Last Synced: 2024-07-30T20:05:23.424Z (over 1 year ago)
- Topics: http-middleware, middleware, php7, psr-15, psr-17
- Language: PHP
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# response-sender-middleware
[![Build Status][ico-build]][link-build]
[![Code Quality][ico-code-quality]][link-code-quality]
[![Code Coverage][ico-code-coverage]][link-code-coverage]
[![Latest Version][ico-version]][link-packagist]
[![PDS Skeleton][ico-pds]][link-pds]
PSR-15 compliant implementation of middleware for converting PSR-7 Response to HTTP output.
## Installation
The preferred method of installation is via [Composer](http://getcomposer.org/). Run the following command to install the latest version of a package and add it to your project's `composer.json`:
```bash
composer require wecodein/response-sender-middleware
```
## Usage
``` php
$middleware = new ResponseSenderMiddleware();
$middleware->process($serverRequest, $requestHandler);
```
## Credits
- [Dusan Vejin][link-author]
- [All Contributors][link-contributors]
## License
Released under MIT License - see the [License File](LICENSE) for details.
[ico-version]: https://img.shields.io/packagist/v/wecodein/response-sender-middleware.svg
[ico-build]: https://travis-ci.org/wecodein/response-sender-middleware.svg?branch=master
[ico-code-coverage]: https://img.shields.io/scrutinizer/coverage/g/wecodein/response-sender-middleware.svg
[ico-code-quality]: https://img.shields.io/scrutinizer/g/wecodein/response-sender-middleware.svg
[ico-pds]: https://img.shields.io/badge/pds-skeleton-blue.svg
[link-packagist]: https://packagist.org/packages/wecodein/response-sender-middleware
[link-build]: https://travis-ci.org/wecodein/response-sender-middleware
[link-code-coverage]: https://scrutinizer-ci.com/g/wecodein/response-sender-middleware/code-structure
[link-code-quality]: https://scrutinizer-ci.com/g/wecodein/response-sender-middleware
[link-pds]: https://github.com/php-pds/skeleton
[link-author]: https://github.com/dutekvejin
[link-contributors]: ../../contributors