org_heigl/psr7wrapper

Wrap Request/Response-Objects from different frameworks into a PSR7-compliant envelope

1.0.0 2016-04-01 09:34 UTC

This package is auto-updated.

Last update: 2024-11-23 09:27:26 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());
    }
}