PHPackages                             razonyang/psr7-swoole - 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. razonyang/psr7-swoole

ActiveLibrary

razonyang/psr7-swoole
=====================

PSR-7 implementation for Swoole

1.0.0(3y ago)42481MITPHPPHP ^8.0

Since Sep 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/razonyang/psr7-swoole)[ Packagist](https://packagist.org/packages/razonyang/psr7-swoole)[ RSS](/packages/razonyang-psr7-swoole/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (4)Used By (1)

Swoole + PSR7
=============

[](#swoole--psr7)

[![Latest Stable Version](https://camo.githubusercontent.com/a8f514bf51452fe6864bda24f1b6e99f270bb0e97cb3d8378fae56d8398525d2/68747470733a2f2f706f7365722e707567782e6f72672f72617a6f6e79616e672f707372372d73776f6f6c652f762f737461626c652e706e67)](https://packagist.org/packages/razonyang/psr7-swoole)[![Total Downloads](https://camo.githubusercontent.com/652b0bdc603741c4c7c76cf6300ca10f3531201b287e7af115e3a38cbf98358b/68747470733a2f2f706f7365722e707567782e6f72672f72617a6f6e79616e672f707372372d73776f6f6c652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/razonyang/psr7-swoole)[![Build Status](https://github.com/razonyang/psr7-swoole/workflows/build/badge.svg)](https://github.com/razonyang/psr7-swoole/actions)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4c567b733600ec579e0e3a2d855c6579466af47d538a27340ef17a93575522b7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f72617a6f6e79616e672f707372372d73776f6f6c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/razonyang/psr7-swoole/?branch=main)[![Code Coverage](https://camo.githubusercontent.com/e1e523bb55d7773cab38c4ceab6329cd9a7c50d5b619f250a3aaa14a27582931/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f72617a6f6e79616e672f707372372d73776f6f6c652f6261646765732f636f7665726167652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/razonyang/psr7-swoole/?branch=main)[![StyleCI](https://camo.githubusercontent.com/ed5050d878726d563c55f9265e75ef6685cf6d3fb5716aaf8ff03c23b778cf01/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3533373534313535352f736869656c643f6272616e63683d6d61696e)](https://github.styleci.io/repos/537541555?branch=main)

The PSR-7 helpers for Swoole, the bridge of Swoole and PSR things, such as PSR-7 HTTP message, PSR-15 handlers and PSR-15 middlewares. It allows to integrate Swoole with PSR-compatible frameworks to speed up your applications.

- Convert `Swoole\Http\Request` to `Psr\Http\Message\ServerRequestInterface`.
- Emit `Psr\Http\Message\ResponseInterface` to `Swoole\Http\Response`.

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

[](#installation)

```
composer require razonyang/psr7-swoole --prefer-dist
```

Usage
-----

[](#usage)

```
