org_heigl / psr7wrapper
Wrap Request/Response-Objects from different frameworks into a PSR7-compliant envelope
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/org_heigl/psr7wrapper
Requires
- league/uri: ^4.1
- psr/http-message: ^1.0
Requires (Dev)
- zendframework/zendframework1: ^1.12
This package is auto-updated.
Last update: 2025-09-23 11:17:43 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()); } }