PHPackages                             compwright/swoole-psr7-compat - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. compwright/swoole-psr7-compat

Abandoned → [openswoole/core](/?search=openswoole%2Fcore)ArchivedLibrary[PSR &amp; Standards](/categories/psr-standards)

compwright/swoole-psr7-compat
=============================

PSR compatibility adapters for Swoole

2.1.0(3y ago)01.3kMITPHP

Since Oct 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/compwright/swoole-psr7-compat)[ Packagist](https://packagist.org/packages/compwright/swoole-psr7-compat)[ RSS](/packages/compwright-swoole-psr7-compat/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (10)Versions (7)Used By (0)

Openswoole PSR-7 Compatibility Package
======================================

[](#openswoole-psr-7-compatibility-package)

[![Build Status](https://camo.githubusercontent.com/c5a8f5bb52f49d071ee94cf1863267669f12e520871a889ab8b5ff87eb203473/68747470733a2f2f7472617669732d63692e6f72672f636f6d707772696768742f73776f6f6c652d707372372d636f6d7061742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/compwright/swoole-psr7-compat)[![Coverage Status](https://camo.githubusercontent.com/75607dbd0412e22327fc4245cde31e86df91e4ca4ace51a1a1c94d7c28d009a7/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f636f6d707772696768742f73776f6f6c652d707372372d636f6d7061742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/compwright/swoole-psr7-compat?branch=master)

PSR compatibility adapters for [Openswoole](https://openswoole.com)

Install
-------

[](#install)

Via Composer

```
$ composer require compwright/swoole-psr7-compat
```

Usage
-----

[](#usage)

```
use Compwright\SwoolePsr7Compat\SwoolePsrRequestFactory;
use Compwright\SwoolePsr7Compat\SwoolePsrHandler;
use Nyholm\Psr7Server\ServerRequestCreator;

$serverRequestCreator = new ServerRequestCreator(
    // Pass in the factories here for your desired PSR-7 implementation
    new \Laminas\Diactoros\ServerRequestFactory(),
    new \Laminas\Diactoros\UriFactory(),
    new \Laminas\Diactoros\UploadedFileFactory(),
    new \Laminas\Diactoros\StreamFactory()
);
$requestFactory = new SwoolePsrRequestFactory($serverRequestCreator);
$handler = new SwoolePsrHandler($requestFactory);

$server = new Swoole\HTTP\Server('0.0.0.0', 9501);

// $app is any Psr\Http\Server\RequestHandlerInterface
$server->on('request', $handler($app));

$server->start();
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~128 days

Recently: every ~160 days

Total

6

Last Release

1423d ago

Major Versions

1.0.3 → 2.0.02021-08-25

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/138688?v=4)[Jonathon Hill](/maintainers/compwright)[@compwright](https://github.com/compwright)

---

Top Contributors

[![compwright](https://avatars.githubusercontent.com/u/138688?v=4)](https://github.com/compwright "compwright (7 commits)")

---

Tags

openswoole

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/compwright-swoole-psr7-compat/health.svg)

```
[![Health](https://phpackages.com/badges/compwright-swoole-psr7-compat/health.svg)](https://phpackages.com/packages/compwright-swoole-psr7-compat)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[cakephp/cakephp

The CakePHP framework

8.8k19.1M1.7k](/packages/cakephp-cakephp)[bref/bref

Bref is a framework to write and deploy serverless PHP applications on AWS Lambda.

3.4k10.2M61](/packages/bref-bref)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[jaxon-php/jaxon-core

Jaxon is an open source PHP library for easily creating Ajax web applications

73147.2k29](/packages/jaxon-php-jaxon-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
