PHPackages                             chubbyphp/chubbyphp-psr7-middleware-singlepass-to-multipass-adapter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. chubbyphp/chubbyphp-psr7-middleware-singlepass-to-multipass-adapter

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

chubbyphp/chubbyphp-psr7-middleware-singlepass-to-multipass-adapter
===================================================================

Chubbyphp Psr7 Middleware Adapter

1.0.2(9y ago)117MITPHPPHP ~5.5|~7.0

Since Sep 29Pushed 8y agoCompare

[ Source](https://github.com/chubbyphp-legacy/chubbyphp-psr7-middleware-singlepass-to-multipass-adapter)[ Packagist](https://packagist.org/packages/chubbyphp/chubbyphp-psr7-middleware-singlepass-to-multipass-adapter)[ RSS](/packages/chubbyphp-chubbyphp-psr7-middleware-singlepass-to-multipass-adapter/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

chubbyphp-psr7-middleware-singlepass-to-multipass-adapter
=========================================================

[](#chubbyphp-psr7-middleware-singlepass-to-multipass-adapter)

[![Build Status](https://camo.githubusercontent.com/21384b316f2f4beeab11920ce7e54d88269fafbd6ca05936484b11b09a963e8a/68747470733a2f2f6170692e7472617669732d63692e6f72672f6368756262797068702f6368756262797068702d707372372d6d6964646c65776172652d73696e676c65706173732d746f2d6d756c7469706173732d616461707465722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/chubbyphp/chubbyphp-psr7-middleware-singlepass-to-multipass-adapter)[![Total Downloads](https://camo.githubusercontent.com/81a3173be1bace0a2e322bc89bfce707073a5ab920aa90abfe957aeccf18d5f0/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d707372372d6d6964646c65776172652d73696e676c65706173732d746f2d6d756c7469706173732d616461707465722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/chubbyphp/chubbyphp-psr7-middleware-singlepass-to-multipass-adapter)[![Latest Stable Version](https://camo.githubusercontent.com/544cd1af9fe1bcb9cb8c7c1230cc3773587f22d318e2986de6159c60272edc3c/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d707372372d6d6964646c65776172652d73696e676c65706173732d746f2d6d756c7469706173732d616461707465722f762f737461626c652e706e67)](https://packagist.org/packages/chubbyphp/chubbyphp-psr7-middleware-singlepass-to-multipass-adapter)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2b3d6f55f081923921017ec8aa869682503c0a8467fc7cc37171b64cc6d30ae6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6368756262797068702f6368756262797068702d707372372d6d6964646c65776172652d73696e676c65706173732d746f2d6d756c7469706173732d616461707465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/chubbyphp/chubbyphp-psr7-middleware-singlepass-to-multipass-adapter/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/4ae4fd2e16e9f8a2082ff42274d65db6c09bae0e8da093449a3821809a52b86c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6368756262797068702f6368756262797068702d707372372d6d6964646c65776172652d73696e676c65706173732d746f2d6d756c7469706173732d616461707465722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/chubbyphp/chubbyphp-psr7-middleware-singlepass-to-multipass-adapter/?branch=master)

Description
-----------

[](#description)

This adapter can be used, if you dlike to use single pass (no response argument given) middleware within a multipass environment as for example [slim](https://github.com/slimphp/slim) or [zend-expressive](https://github.com/zendframework/zend-expressive) are.

Requirements
------------

[](#requirements)

- php: ~5.4
- psr/http-message: ~1.0

Installation
------------

[](#installation)

Through [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-psr7-middleware-singlepass-to-multipass-adapter](https://packagist.org/packages/chubbyphp/chubbyphp-psr7-middleware-singlepass-to-multipass-adapter).

```
composer require chubbyphp/chubbyphp-psr7-middleware-singlepass-to-multipass-adapter "~1.0"
```

Usage
-----

[](#usage)

The variable `$next`, within the single pass middleware arguments will always be a \\Closure from the adapter.

```
