org_heigl / psr7wrapper
Wrap Request/Response-Objects from different frameworks into a PSR7-compliant envelope
1.0.0
2016-04-01 09:34 UTC
Requires
- league/uri: ^4.1
- psr/http-message: ^1.0
Requires (Dev)
- zendframework/zendframework1: ^1.12
This package is auto-updated.
Last update: 2024-10-23 09:17:48 UTC
README
A library to mimick PSR7 behaviours to Request- or Response-Objects of different Frameworks.
During my work I came accross the need to wrap a ZendFramework1-Request into a PSR7-Request. As I couldn't find a lib that did that I had to write my own one.
Installation
composer require org_heigl/psr7wrapper
Usage
use Org_Heigl\Psr7Wrapper\Wrapper\Zf1\RequestWrapper; use Org_Heigl\Psr7Wrapper\Wrapper\Zf1\ResponseWrapper; class DemoController Extends Zend_Controller_Abstract { public function testAction() { $request = new RequestWrapper($this->getRequest()); $request = new ResponseWrapper($this->getResponse()); } }