PHPackages                             ilexn/swoole-convent-psr7 - 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. [API Development](/categories/api)
4. /
5. ilexn/swoole-convent-psr7

Abandoned → [ilexn/swoole-convert-psr7](/?search=ilexn%2Fswoole-convert-psr7)Library[API Development](/categories/api)

ilexn/swoole-convent-psr7
=========================

convert swoole to psr7 request response

0.6.1(4y ago)107484[1 issues](https://github.com/iLexN/swoole-psr7/issues)[1 PRs](https://github.com/iLexN/swoole-psr7/pulls)MITPHPPHP &gt;=8.1CI passing

Since Dec 16Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/iLexN/swoole-psr7)[ Packagist](https://packagist.org/packages/ilexn/swoole-convent-psr7)[ GitHub Sponsors](https://github.com/iLexN)[ RSS](/packages/ilexn-swoole-convent-psr7/feed)WikiDiscussions main Synced yesterday

READMEChangelog (8)Dependencies (10)Versions (13)Used By (0)

SwoolePsr7
==========

[](#swoolepsr7)

[![Latest Stable Version](https://camo.githubusercontent.com/803caaa0b3b957226d96ac077f5ddfd4a6bc3d077770c9050155d328b292865a/68747470733a2f2f706f7365722e707567782e6f72672f696c65786e2f73776f6f6c652d636f6e766572742d707372372f762f737461626c65)](https://packagist.org/packages/ilexn/swoole-convert-psr7)[![Total Downloads](https://camo.githubusercontent.com/542a7e89269b25d9c63ad58f6f0e5d6021d279d6aacc0e9730cc644a6b43c9aa/68747470733a2f2f706f7365722e707567782e6f72672f696c65786e2f73776f6f6c652d636f6e766572742d707372372f646f776e6c6f616473)](https://packagist.org/packages/ilexn/swoole-convert-psr7)

[![CI Check](https://github.com/iLexN/swoole-psr7/workflows/CI%20Check/badge.svg)](https://github.com/iLexN/swoole-psr7/workflows/CI%20Check/badge.svg)[![Coverage Status](https://camo.githubusercontent.com/e9e871652f17bb71344f32e8410d8f304c9b36d491e6cd891de07cbd62568fb2/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f694c65784e2f73776f6f6c652d707372372f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/iLexN/swoole-psr7?branch=main)

[![Ask DeepWiki](https://camo.githubusercontent.com/0f5ae213ac378635adeb5d7f13cef055ad2f7d9a47b36de7b1c67dbe09f609ca/68747470733a2f2f6465657077696b692e636f6d2f62616467652e737667)](https://deepwiki.com/iLexN/swoole-psr7)

Use any PSR 17 Factory to convert to PSR 7 Response/Request.

**Note: not production use yet. Just for leaning.**

**Start from 0.5.0, CI test also include swoole and openswoole**

Install
-------

[](#install)

Via Composer

```
$ composer require ilexn/swoole-convert-psr7
```

Upgrade from old package
------------------------

[](#upgrade-from-old-package)

Remove the old package

```
$ composer remove ilexn/swoole-convent-psr7
```

Install the new package

```
$ composer require ilexn/swoole-convert-psr7
```

Two package using the same namespace, no other code need to change.

Usage
-----

[](#usage)

use [Slim 4](https://github.com/slimphp/Slim) and [Nyholm/psr7](https://github.com/Nyholm/psr7) as example.

```
