Download the PHP package yiisoft/psr-emitter without Composer
On this page you can find all versions of the php package yiisoft/psr-emitter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yiisoft/psr-emitter
More information about yiisoft/psr-emitter
Files in yiisoft/psr-emitter
Package psr-emitter
Short Description PSR-7 HTTP response emitter
License BSD-3-Clause
Homepage https://www.yiiframework.com/
Informations about the package psr-emitter
Yii PSR Emitter
The package provides EmitterInterface
that is responsible for sending PSR-7 HTTP responses as well as several implementations of the interface:
SapiEmitter
- sends a response using standard PHP Server API;FakeEmiiter
- a fake emitter that does nothing, except for capturing response (useful for testing purposes).
Additionally, the package provides EmitterMiddleware
PSR-15 middleware that can be used in an application to send
a response by any EmitterInterface
implementation.
Requirements
- PHP 8.1 or higher.
Installation
The package could be installed with Composer:
General usage
Create emitter instance and call emit()
method with a PSR-7 response:
You can customize the buffer size (by default, 8MB) for large response bodies:
Documentation
- Internals
If you need help or have a question, the Yii Forum is a good place for that. You may also check out other Yii Community Resources.
License
The Yii PSR Emitter is free software. It is released under the terms of the BSD License.
Please see LICENSE
for more information.
Maintained by Yii Software.
Support the project
Follow updates
All versions of psr-emitter with dependencies
psr/http-message Version ^2.0
yiisoft/friendly-exception Version ^1.1