http-interop/response-sender

A function to convert PSR-7 Response to HTTP output

1.0.0 2017-03-17 15:46 UTC

This package is auto-updated.

Last update: 2024-03-20 03:15:36 UTC


README

A simple function that will send PSR-7 ResponseInterface headers and body.

Installation

composer require http-interop/response-sender

Usage

use function Http\Response\send;

// Any ResponseInterface instance can be used.
$notFound = $responseFactory->createResponse(404);

// Send headers and body.
send($notFound);

License

MIT