zendframework/zend-psr7bridge
Bridge between Zend Diactoros HTTP messages and PSR-7 interfaces. Provides factories and converters to create, wrap, and translate requests, responses, streams, and uploaded files for interoperability across PSR-7 compatible middleware and apps.
GenericHeader instances; now, the bridge uses Psr7Response::psr7HeadersToString
to pass them to Zend\Http\Headers::fromString(), ensuring that the more
specific zend-http HeaderInterface instance types are created.Psr7ServerRequest::fromZend() to check if the request is a Zend\Http\PhpEnvironment\Request and, if so, use the return value of its getServer() method to seed the PSR-7 request's server parameters.Psr7ServerRequest::convertUploadedFiles() to ensure that the tmp_name is provided to the $_FILES structure from the PSR-7 uploaded files.Psr7ServerRequest::convertFilesToUploaded() to iterate the entire value provided it, instead of a fictitious file key.Initial release!
Zend\Psr7Bridge\Psr7ServerRequest::toZend($request, $shallow = false) allows converting a Psr\Http\Message\ServerRequestInterface to a Zend\Http\PhpEnvironment\Request instance. The $shallow flag, when enabled, will omit the body content, body parameters, and upload files from the zend-http request (e.g., for routing purposes).How can I help you explore Laravel packages today?