PHP code example of solophp / http-emitter
1. Go to this page and download the library: Download solophp/http-emitter library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
solophp / http-emitter example snippets
use Solo\HttpEmitter\Emitter;
$emitter = new Emitter();
$emitter->emit($response);
$emitter = new Emitter(responseChunkSize: 65536);
use Solo\Contracts\Http\EmitterInterface;
use Solo\HttpEmitter\Emitter;
$container->set(EmitterInterface::class, fn() => new Emitter());