Download the PHP package vcn/symfony-writer without Composer
On this page you can find all versions of the php package vcn/symfony-writer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download vcn/symfony-writer
More information about vcn/symfony-writer
Files in vcn/symfony-writer
Download vcn/symfony-writer
More information about vcn/symfony-writer
Files in vcn/symfony-writer
Vendor vcn
Package symfony-writer
Short Description Stream writing library that supports listening in on the stream
License MIT
Package symfony-writer
Short Description Stream writing library that supports listening in on the stream
License MIT
Please rate this library. Is it a good library?
Informations about the package symfony-writer
vcn/symfony-writer
vcn/symfony-writer is a library that provides an alternative to the StreamedResponse-class of Symfony. In contrast to StreamedResponse, WriterResponse allows you to attach listeners and capture what is being responded.
Installation
Install using composer in your symfony-project:
Usage
Usage is similar to usage of the StreamedResponse, with a few small changes:
- the callback now takes an instance of
\Vcn\Symfony\HttpFoundation\Writer
as first and only argument - instead of echo-ing, you should call
Writer::write
with the data to output as string parameter - before the response is sent, you can attach a listener to the response using
Writer::attachListener
Example:
All versions of symfony-writer with dependencies
PHP Build Version
Package Version
The package vcn/symfony-writer contains the following files
Loading the files please wait ....