org_heigl/psr7wrapper
Composer 安装命令:
composer require org_heigl/psr7wrapper
包简介
Wrap Request/Response-Objects from different frameworks into a PSR7-compliant envelope
README 文档
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()); } }
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-01