Download the PHP package codeinc/psr7-response-sender without Composer
On this page you can find all versions of the php package codeinc/psr7-response-sender. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codeinc/psr7-response-sender
More information about codeinc/psr7-response-sender
Files in codeinc/psr7-response-sender
Package psr7-response-sender
Short Description Code Inc. PSR-7 response senders
License MIT
Homepage https://github.com/CodeIncHQ/Psr7ResponseSender
Informations about the package psr7-response-sender
PSR-7 response sender
This library is a companion to the codeinc/router
written in PHP 7. It provides the ResponseSender
responder to stream PSR-7 responses to a web browser and the interface ResponseSenderInterface
for PSR-7 reponse senders.
A response sender is capable of streaming anything implementing the PSR-7 ResponseInterface
.
Usage
By default ResponseSender
removes all PHP native HTTP headers. You can change this behavior using the boolean constructor operator or using the methods removePhpHttpHeaders()
and sendPhpHttpHeaders()
.
A second class GzResponseSender
is provived to send gzip compressed responses using ob_start()
and ob_gzhandler()
Installation
This library is available through Packagist and can be installed using Composer:
License
This library is published under the MIT license (see the LICENSE
file).
All versions of psr7-response-sender with dependencies
psr/http-message Version ^1.0
psr/http-server-handler Version ^1.0
codeinc/http-reason-phrase-lookup Version ^1.0