PHPackages                             connor/swoole-glue - 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. [Framework](/categories/framework)
4. /
5. connor/swoole-glue

ActiveLibrary[Framework](/categories/framework)

connor/swoole-glue
==================

SwooleGlue swoole和各种框架集成

1.0.0(7y ago)115MITPHP

Since Jul 2Pushed 7y ago1 watchersCompare

[ Source](https://github.com/cclehui/SwooleGlue)[ Packagist](https://packagist.org/packages/connor/swoole-glue)[ RSS](/packages/connor-swoole-glue/feed)WikiDiscussions master Synced today

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

SwooleGlue
==========

[](#swooleglue)

server端集成swoole的插件，方便集成到现有的框架中，实现项目的无缝迁移，新一代LAMP开发模式

```
//安装配置
php bin/SwooleGlue.php install

实现SwooleGlue\Component\PServerlet类，在这里做业务处理，并在配置文件中配置实现后的 PServerlet类

启动server
php bin/SwooleGlue.php start
```

http response header问题解决
========================

[](#http-response-header问题解决)

fpm模式下通常通过header(), setcookie()等函数来设置response 的header信息 ，由于咱们使用cli模式运行php， 常规的header\_list()取不到header信息了， 需要对header(), setcookie()进行封装替换

nginx + SwooleGlue 配置
=====================

[](#nginx--swooleglue--配置)

```
server {
    listen  80;
    server_name  _;
    root  /var/www/test;

    location / {
        if (!-e $request_filename){
            proxy_pass http://127.0.0.1:9501;
        }
    }

```

fastcgi 协议解析
------------

[](#fastcgi-协议解析)

fastcgi协议解析引入了 lisachenko/protocol-fcgi 1.1.1 版本， 参考

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

Unknown

Total

1

Last Release

2871d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f29bdb6d6f0216e25f03cefb50f516c3a4d5196299664b1f602a03a901946f69?d=identicon)[cclehui](/maintainers/cclehui)

---

Top Contributors

[![cclehui](https://avatars.githubusercontent.com/u/5411898?v=4)](https://github.com/cclehui "cclehui (2 commits)")

---

Tags

rpcswooleglue

### Embed Badge

![Health badge](/badges/connor-swoole-glue/health.svg)

```
[![Health](https://phpackages.com/badges/connor-swoole-glue/health.svg)](https://phpackages.com/packages/connor-swoole-glue)
```

###  Alternatives

[blink/blink

A high performance web framework and application server in PHP

83441.9k3](/packages/blink-blink)[mix/mix

PHP CLI mode development framework

1.9k1.2k](/packages/mix-mix)[fastd/fastd

The FastD High Performance API Framework

42015.2k17](/packages/fastd-fastd)[hunzhiwange/framework

The QueryPHP Framework.

6415.7k1](/packages/hunzhiwange-framework)[luoxiaojun/sw-fw-less

Swoole Http Server without framework

165.3k](/packages/luoxiaojun-sw-fw-less)

PHPackages © 2026

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