http-interop/response-sender

A function to convert PSR-7 Response to HTTP output

Installs: 679 591

Dependents: 47

Suggesters: 1

Security: 0

Stars: 37

Watchers: 2

Forks: 4

Open Issues: 0

pkg:composer/http-interop/response-sender

1.0.0 2017-03-17 15:46 UTC

This package is auto-updated.

Last update: 2025-09-20 06:36:42 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