# swow/swow

Coroutine-based cross-platform concurrent I/O engine.

Repository: https://github.com/swow/swow
Canonical: https://ross.abutalabs.com/products/swow
Language: C
License: Apache-2.0
License Family: permissive
Topics: coroutine, async, php, asynchronous, coroutines
Last push: 2026-05-27T21:00:47+00:00

## Health v2 (maintenance only)
Score: 73/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 84, release rhythm 43, longevity 100
- inputs: {"age_days": 2178, "days_push": 98, "days_rel": 303, "gap_med": 45.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1329, forks 125 (observed 2026-08-28T04:04:23.864147+00:00)

## What it is
Swow is a coroutine-based concurrent I/O engine for PHP, implemented as a C extension with most functionality exposed through PHP code. It enables high-performance asynchronous network programming on Linux, Windows, and macOS with PHP 8+.

## Use cases
- build high-performance async PHP servers
- write coroutine-based concurrent I/O in PHP
- run non-blocking HTTP or WebSocket servers in PHP
- replace Swoole with a modern coroutine engine
- handle thousands of concurrent connections in PHP

## When to choose
- you need coroutine-based async I/O in PHP 8+
- you want cross-platform support including Windows
- you value debuggability and a small C core with PHP-level extensibility

## When to avoid
- you are on PHP below 8.0
- you need a batteries-included framework rather than an engine
- your project is simple synchronous web development where coroutines add complexity

## Facets
- artifact type: library
- maturity: active
- function: concurrency, http-server, websocket, networking, http-client
- domain: developer-tools, web-development, backend, performance
- platform: windows, php, cross-platform
- tags: coroutine, async-io, php-extension, high-performance, libuv, linux, macos

## Member repositories
- swow/swow (main) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:23.864147+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:45:45.131742+00:00, confidence not recorded.
  - readme: https://github.com/swow/swow (fetched 2026-08-28T04:04:23.864147+00:00, sha 51ac8f2113c2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
