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

ActiveLibrary[Framework](/categories/framework)

zxin/think-swoole
=================

Swoole extend for thinkphp

v4.0.4(4y ago)0254Apache-2.0PHPPHP &gt;=7.4

Since Oct 5Pushed 1mo agoCompare

[ Source](https://github.com/NHZEX/think-swoole)[ Packagist](https://packagist.org/packages/zxin/think-swoole)[ RSS](/packages/zxin-think-swoole/feed)WikiDiscussions zx/3.1 Synced today

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

ThinkPHP Swoole 扩展
==================

[](#thinkphp-swoole-扩展)

安装
--

[](#安装)

首先按照Swoole官网说明安装swoole扩展，然后使用

```
composer require topthink/think-swoole

```

安装swoole扩展。

使用方法
----

[](#使用方法)

直接在命令行下启动HTTP服务端。

```
php think swoole

```

启动完成后，默认会在0.0.0.0:80启动一个HTTP Server，可以直接访问当前的应用。

swoole的相关参数可以在`config/swoole.php`里面配置（具体参考配置文件内容）。

如果需要使用守护进程方式运行，可以配置

```
'options'   =>  [
    'daemonize' =>  true
]

```

支持的操作包括

```
php think swoole [start|stop|reload|restart]

```

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance59

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~60 days

Recently: every ~446 days

Total

59

Last Release

54d ago

Major Versions

v1.0.0 → v2.0.02018-06-22

v2.0.17 → v3.0.02019-04-09

v2.0.18 → v3.0.102020-12-09

3.0.x-dev → v4.0.02021-05-27

v3.1.2.5 → 4.0.x-dev2026-05-09

PHP version history (3 changes)v3.0.6PHP &gt;7.1

v4.0.0PHP &gt;=7.4

4.0.x-devPHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/4de65936ae77499b5393e7c4d094ea6adef938925d4ad806e52be91069b00165?d=identicon)[NHZEX](/maintainers/NHZEX)

---

Top Contributors

[![yunwuxin](https://avatars.githubusercontent.com/u/2168125?v=4)](https://github.com/yunwuxin "yunwuxin (118 commits)")[![liu21st](https://avatars.githubusercontent.com/u/1111670?v=4)](https://github.com/liu21st "liu21st (107 commits)")[![NHZEX](https://avatars.githubusercontent.com/u/14545600?v=4)](https://github.com/NHZEX "NHZEX (46 commits)")[![xavieryang007](https://avatars.githubusercontent.com/u/6174650?v=4)](https://github.com/xavieryang007 "xavieryang007 (32 commits)")[![xqueezeme](https://avatars.githubusercontent.com/u/97489679?v=4)](https://github.com/xqueezeme "xqueezeme (8 commits)")[![simplewindorg](https://avatars.githubusercontent.com/u/6101935?v=4)](https://github.com/simplewindorg "simplewindorg (2 commits)")[![qq475281441](https://avatars.githubusercontent.com/u/14217045?v=4)](https://github.com/qq475281441 "qq475281441 (1 commits)")[![hainuo](https://avatars.githubusercontent.com/u/421861?v=4)](https://github.com/hainuo "hainuo (1 commits)")[![OverNaive](https://avatars.githubusercontent.com/u/62283101?v=4)](https://github.com/OverNaive "OverNaive (1 commits)")[![bzp2010](https://avatars.githubusercontent.com/u/8078418?v=4)](https://github.com/bzp2010 "bzp2010 (1 commits)")[![sy-records](https://avatars.githubusercontent.com/u/33931153?v=4)](https://github.com/sy-records "sy-records (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zxin-think-swoole/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M19.9k](/packages/laravel-framework)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k251.7M11.5k](/packages/symfony-framework-bundle)[spiral/framework

Spiral, High-Performance PHP/Go Framework

2.1k2.2M66](/packages/spiral-framework)[oro/platform

Business Application Platform (BAP)

645143.5k114](/packages/oro-platform)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k14](/packages/tempest-framework)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)

PHPackages © 2026

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