zendframework/zend-diactoros
zendframework/zend-diactoros provides PSR-7 HTTP message implementations for PHP, including ServerRequest, Response, Stream, UploadedFile and Uri. Useful for building middleware, APIs and frameworks with interoperable request/response handling.
PSR-17 defines factory interfaces for creating PSR-7 instances. As of version 2.0.0, Diactoros supplies implementations of each as follows:
Zend\Diactoros\RequestFactoryZend\Diactoros\ResponseFactoryZend\Diactoros\ServerRequestFactoryZend\Diactoros\StreamFactoryZend\Diactoros\UploadedFileFactoryZend\Diactoros\UriFactoryThe ServerRequestFactory continues to define the static method
fromGlobals(), but also serves as a PSR-17 implementation.
These classes may be used as described in the specification document for the purpose of creating Diactoros instances that fulfill PSR-7 typehints.
How can I help you explore Laravel packages today?