brace/mod-request-laminas

Brace Laminas (former ZendFramework) Framework bindings (ServerRequest)

v2.1.0 2024-08-27 16:50 UTC

This package is auto-updated.

Last update: 2024-10-27 17:06:21 UTC


README

Bindings for laminas framework (former ZendFramework) HttpServerRequest / HttpServerResponse

Streaming a Response

public function streamAction() {
    return new StreaedResponse(function() {
        echo "Hello World";
        flush();
        return true;
    }, 200, ['Content-Type' => 'text/plain']);
}