PHPackages                             whero/swf-server - 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. whero/swf-server

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

whero/swf-server
================

A SWoole for Yaf Http Server

1.0.1(6y ago)024PHPPHP &gt;=7.1.0

Since Jul 16Pushed 6y agoCompare

[ Source](https://github.com/aizxin/swf-server)[ Packagist](https://packagist.org/packages/whero/swf-server)[ RSS](/packages/whero-swf-server/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

A SWoole for Yaf Http Server
============================

[](#a-swoole-for-yaf-http-server)

安装
--

[](#安装)

```
    composer require whero/swf-server

```

启用
--

[](#启用)

```
  php bin/swf start -d

```

压力测试
----

[](#压力测试)

```
  ab -c 100 -n 1000000 -k http://127.0.0.1:9501/

```

```
Benchmarking 127.0.0.1 (be patient)
Completed 100000 requests
Completed 200000 requests
Completed 300000 requests
Completed 400000 requests
Completed 500000 requests
Completed 600000 requests
Completed 700000 requests
Completed 800000 requests
Completed 900000 requests
Completed 1000000 requests
Finished 1000000 requests

Server Software:        swoole-http-server
Server Hostname:        127.0.0.1
Server Port:            9501

Document Path:          /
Document Length:        18 bytes

Concurrency Level:      100
Time taken for tests:   12.012 seconds
Complete requests:      1000000
Failed requests:        0
Keep-Alive requests:    1000000
Total transferred:      193000000 bytes
HTML transferred:       18000000 bytes
Requests per second:    83250.89 [#/sec] (mean)
Time per request:       1.201 [ms] (mean)
Time per request:       0.012 [ms] (mean, across all concurrent requests)
Transfer rate:          15690.84 [Kbytes/sec] received

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.2% 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

Unknown

Total

1

Last Release

2542d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22167719?v=4)[空白格](/maintainers/aizxin)[@aizxin](https://github.com/aizxin)

---

Top Contributors

[![aizxin](https://avatars.githubusercontent.com/u/22167719?v=4)](https://github.com/aizxin "aizxin (20 commits)")[![wmk223](https://avatars.githubusercontent.com/u/10369302?v=4)](https://github.com/wmk223 "wmk223 (1 commits)")

### Embed Badge

![Health badge](/badges/whero-swf-server/health.svg)

```
[![Health](https://phpackages.com/badges/whero-swf-server/health.svg)](https://phpackages.com/packages/whero-swf-server)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/packages/mezzio-mezzio-router)[saithink/saiadmin

webman plugin

28111.0k1](/packages/saithink-saiadmin)

PHPackages © 2026

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