PHPackages                             swow/swow - 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. swow/swow

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

swow/swow
=========

Coroutine-based multi-platform support engine with a focus on concurrent I/O

v1.6.2(8mo ago)1.3k2.2M↓21.2%124[31 issues](https://github.com/swow/swow/issues)[7 PRs](https://github.com/swow/swow/pulls)20Apache-2.0CPHP &gt;=8.0CI failing

Since Oct 25Pushed 1mo ago51 watchersCompare

[ Source](https://github.com/swow/swow)[ Packagist](https://packagist.org/packages/swow/swow)[ RSS](/packages/swow-swow/feed)WikiDiscussions develop Synced 2d ago

READMEChangelog (10)Dependencies (9)Versions (31)Used By (20)

English | [中文](./README-CN.md) | [日本語](./README-JP.md)

[![Swow Logo](https://camo.githubusercontent.com/804dc7fb4d0fd7ea512cdabea446352d10a56562750b982b627a99539161e660/68747470733a2f2f646f63732e746f6173742e72756e2f6173736574732f696d616765732f73776f772e737667)](https://github.com/swow/swow)
🚀 Swow is a multi-platform support and coroutine-based engine with a focus on concurrent I/O
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#-swow-is-a-multi-platform-support-and-coroutine-based-engine-with-a-focus-on-concurrent-io)

[![license](https://camo.githubusercontent.com/1d48dd9fe6bf24b648040a29de372f089b9340226a4fb00214784dfb402cdda1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d617061636865322d626c75652e737667)](LICENSE)[![ci](https://github.com/swow/swow/workflows/tests/badge.svg)](https://github.com/swow/swow/actions?query=workflow:tests)[![codecov](https://camo.githubusercontent.com/e22846fe2f825084440217d866afc7b34898dd530cddf697fc38bd9bb1d5e969/68747470733a2f2f636f6465636f762e696f2f67682f73776f772f73776f772f6272616e63682f646576656c6f702f67726170682f62616467652e737667)](https://codecov.io/gh/swow/swow)[![release](https://camo.githubusercontent.com/effcbcb0288b6de72364547d4285a30a601d3a41643ac21cb68c8c3bd6e2a454/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f73776f772f73776f772e7376673f696e636c7564655f70726572656c6561736573)](https://github.com/swow/swow/releases)[![❤️](https://camo.githubusercontent.com/2e1e6f7817542cc17da9178188634eb86065a3468d7bbeb72f8f6cb3f6782a37/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d616465253230776974682d2545322539442541342d663030)](https://camo.githubusercontent.com/2e1e6f7817542cc17da9178188634eb86065a3468d7bbeb72f8f6cb3f6782a37/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d616465253230776974682d2545322539442541342d663030)[![php](https://camo.githubusercontent.com/06e355224445c40bf64057cb3fe377031a654d50abc14fc4bbefff56a4c110da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e302d2d382e352d726f79616c626c75652e737667)](https://camo.githubusercontent.com/06e355224445c40bf64057cb3fe377031a654d50abc14fc4bbefff56a4c110da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e302d2d382e352d726f79616c626c75652e737667)[![platform](https://camo.githubusercontent.com/a75a262b094244c1fdaccbd1644d1dc632ee86cb518b61ca82994d43c2ad33ce/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f706c6174666f726d2d57696e3332253230253743253230474e552f4c696e75782532302537432532306d61634f53253230253743253230467265654253442532302d676f6c64)](https://camo.githubusercontent.com/a75a262b094244c1fdaccbd1644d1dc632ee86cb518b61ca82994d43c2ad33ce/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f706c6174666f726d2d57696e3332253230253743253230474e552f4c696e75782532302537432532306d61634f53253230253743253230467265654253442532302d676f6c64)[![architecture](https://camo.githubusercontent.com/f2ed2f0f4ad373e993b337f1524178b825d5091771f5a81795144c6a33c97f3b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6172636869746563747572652d7838362d2d363425323025374325323041524d36342532302537432532306d6970733634656c253230253743253230726973637636342532302d6d61726f6f6e)](https://camo.githubusercontent.com/f2ed2f0f4ad373e993b337f1524178b825d5091771f5a81795144c6a33c97f3b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6172636869746563747572652d7838362d2d363425323025374325323041524d36342532302537432532306d6970733634656c253230253743253230726973637636342532302d6d61726f6f6e)

👾 Design Philosophy
-------------------

[](#-design-philosophy)

Swow is committed to using the smallest C core and most of the PHP code to support PHP high-performance network programming, which determines that it is more about providing powerful secondary development capabilities by seamlessly integrating PHP code and C kernel, while ensuring critical performance.

In addition, it provides a variety of debugging mechanisms and powerful and low-threshold debugging tools, which can ensure that developers are free from the trouble of BUGs as much as possible, and ordinary developers can also have the ability to debug near the level of experts with the help of tools, so as to maximize development efficiency.

🎮 Installation
--------------

[](#-installation)

> Like any open source project, Swow always provides the strongest stability and features in **the newest release**, please try to ensure that you are using the latest version.

### 🔎 Requirements

[](#-requirements)

- Common operating systems such as Linux, Windows, macOS, etc. Almost same as [libuv](https://github.com/libuv/libuv/blob/v1.x/SUPPORTED_PLATFORMS.md)
- PHP 8.0.0 or above, the latest version is recommended

### 🥧 Using PIE

[](#-using-pie)

Get [PIE](https://github.com/php/pie) first.

```
pie install swow/swow-extension
```

for develop version (may contain bugfix):

```
pie install swow/swow-extension:dev-develop
```

### 👨‍🎤 By Composer

[](#‍-by-composer)

pull source code:

```
composer require swow/swow
```

Then run the automatic installer `swow-builder` under the `vendor/bin` directory to start the installation:

```
./vendor/bin/swow-builder --install
```

After you update the source code of Swow, you should use the `rebuild` option to recompile Swow and then install it:

```
./vendor/bin/swow-builder --rebuild --install
```

More information about `swow-builder` can be found in [Extension installation document - By Composer](https://docs.toast.run/swow/en/install.html).

### 🐧 Manual installation (UNIX-like)

[](#-manual-installation-unix-like)

clone the Swow (You can also import it through Composer, and then cd to `vendor/swow/swow/ext` and install manually):

```
git clone https://github.com/swow/swow.git
```

Well-known building procedure. Install to the system with root privileges:

```
cd swow/ext && \
phpize && ./configure && make && \
sudo make install
```

### Ⓜ️ Manual installation (Windows)

[](#ⓜ️-manual-installation-windows)

See [Installation document - Manual compilation installation (Windows)](https://docs.toast.run/swow/en/install.html#manually-build-and-install-windows).

You can also download DLL directly in [Latest Release](https://github.com/swow/swow/releases/latest).

🔰️ Security issues
------------------

[](#️-security-issues)

Security issues should be reported privately, via email, to . You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message.

🖊️ Contribution
---------------

[](#️-contribution)

Your contribution to Swow development is very welcome!

You may contribute in the following ways:

- [Report issues and feedback](https://github.com/swow/swow/issues)
- [Submit fixes, features via Pull Request](https://github.com/swow/swow/pulls)
- [Write/polish documentation via GitHub](https://github.com/toastrun/docs.toast.run)

❤️ Contributors
---------------

[](#️-contributors)

PHP high-performance coroutine network communication engine development road is too high to be popular, It's a lonely open source work at the top.

Thank you very much to the following partners for the contribution of the Swow project, without you there is no Swow now.

[![Contributors](https://camo.githubusercontent.com/3777b08f60eec20065da0c2e91c4798f2ea820d2c183e9f9347d9e8e69b7f54e/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f73776f772f636f6e7472696275746f72732e7376673f77696474683d38393026627574746f6e3d66616c7365)](https://github.com/swow/swow/graphs/contributors)

💬 Development &amp; Discussion
------------------------------

[](#-development--discussion)

- **Wiki**：
- **Blog (CHS)**
- **Features (CHS)**
- **API Reference**：
- **Discussions**：
- **TODO**：

📃 License
---------

[](#-license)

Swow is available under the [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html). Swow also includes external libraries that are available under a variety of licenses. See [LICENSES.full](LICENSES.full) for the full license text.

###  Health Score

65

—

FairBetter than 99% of packages

Maintenance78

Regular maintenance activity

Popularity66

Solid adoption and visibility

Community48

Growing community involvement

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 68.7% 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 ~54 days

Recently: every ~20 days

Total

25

Last Release

37d ago

Major Versions

v0.3.2-alpha → v1.0.02023-01-03

v1.7.0-alpha.3 → v2.0.0-alpha.22026-05-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/1bdf9390d85a45dad64fe58584f55824c12a134a04e338d6259845683d9db137?d=identicon)[twosee](/maintainers/twosee)

---

Top Contributors

[![twose](https://avatars.githubusercontent.com/u/25978241?v=4)](https://github.com/twose "twose (1584 commits)")[![dixyes](https://avatars.githubusercontent.com/u/11804369?v=4)](https://github.com/dixyes "dixyes (652 commits)")[![limingxinleo](https://avatars.githubusercontent.com/u/16648551?v=4)](https://github.com/limingxinleo "limingxinleo (22 commits)")[![AuroraYolo](https://avatars.githubusercontent.com/u/20986749?v=4)](https://github.com/AuroraYolo "AuroraYolo (9 commits)")[![sy-records](https://avatars.githubusercontent.com/u/33931153?v=4)](https://github.com/sy-records "sy-records (8 commits)")[![huanghantao](https://avatars.githubusercontent.com/u/22836925?v=4)](https://github.com/huanghantao "huanghantao (7 commits)")[![her-cat](https://avatars.githubusercontent.com/u/18332628?v=4)](https://github.com/her-cat "her-cat (5 commits)")[![PandaLIU-1111](https://avatars.githubusercontent.com/u/26201936?v=4)](https://github.com/PandaLIU-1111 "PandaLIU-1111 (3 commits)")[![xuanyanwow](https://avatars.githubusercontent.com/u/28777109?v=4)](https://github.com/xuanyanwow "xuanyanwow (2 commits)")[![woodongwong](https://avatars.githubusercontent.com/u/9292647?v=4)](https://github.com/woodongwong "woodongwong (1 commits)")[![xtyxtyx](https://avatars.githubusercontent.com/u/15033141?v=4)](https://github.com/xtyxtyx "xtyxtyx (1 commits)")[![yulei745](https://avatars.githubusercontent.com/u/1788251?v=4)](https://github.com/yulei745 "yulei745 (1 commits)")[![assert6](https://avatars.githubusercontent.com/u/28561563?v=4)](https://github.com/assert6 "assert6 (1 commits)")[![Yurunsoft](https://avatars.githubusercontent.com/u/20104656?v=4)](https://github.com/Yurunsoft "Yurunsoft (1 commits)")[![ChildEden](https://avatars.githubusercontent.com/u/26630425?v=4)](https://github.com/ChildEden "ChildEden (1 commits)")[![duxphp](https://avatars.githubusercontent.com/u/2184214?v=4)](https://github.com/duxphp "duxphp (1 commits)")[![dux-web](https://avatars.githubusercontent.com/u/2184214?v=4)](https://github.com/dux-web "dux-web (1 commits)")[![eltociear](https://avatars.githubusercontent.com/u/22633385?v=4)](https://github.com/eltociear "eltociear (1 commits)")[![h2zi](https://avatars.githubusercontent.com/u/5967335?v=4)](https://github.com/h2zi "h2zi (1 commits)")[![huangzhhui](https://avatars.githubusercontent.com/u/12077148?v=4)](https://github.com/huangzhhui "huangzhhui (1 commits)")

---

Tags

asyncasynchronouscoroutinecoroutinesphphttpeventasyncclientserverwebsocketcoroutinelibuvswowlibcat

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/swow-swow/health.svg)

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.1B4.0k](/packages/guzzlehttp-psr7)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[laudis/neo4j-php-client

Neo4j-PHP-Client is the most advanced PHP Client for Neo4j

185702.8k44](/packages/laudis-neo4j-php-client)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[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)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)

PHPackages © 2026

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