# swoole/swoole-src

🚀 Coroutine-based concurrency library for PHP

Repository: https://github.com/swoole/swoole-src
Canonical: https://ross.abutalabs.com/products/swoole-src
Homepage: https://www.swoole.com
Language: C++
License: Apache-2.0
License Family: permissive
Topics: swoole, coroutines, php, websocket, event, concurrency
Last push: 2026-08-17T02:38:55+00:00

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 98, release rhythm 92, longevity 100
- inputs: {"age_days": 5156, "days_push": 17, "days_rel": 56, "gap_med": 18, "n_releases_24m": 20}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 18913, forks 3147 (observed 2026-08-28T04:11:27.209517+00:00)

## What it is
Swoole is an event-driven, asynchronous, coroutine-based concurrency library implemented as a PHP extension in C++. It enables PHP to run high-performance TCP/UDP/HTTP/WebSocket servers and concurrent I/O without external web servers.

## Use cases
- build high-concurrency websocket servers in php
- run async coroutines in php
- serve http without nginx php-fpm
- write tcp/udp socket servers in php
- make concurrent http requests in php
- build realtime applications with php

## When to choose
- you need high-throughput, long-running PHP services like websocket or game servers
- you want coroutine-based async I/O in PHP without rewriting in another language

## When to avoid
- you run simple shared-hosting or short-lived PHP scripts
- you depend on extensions/libraries incompatible with Zend extension hooks or long-running processes

## Facets
- artifact type: library
- maturity: active
- function: concurrency, http-server, websocket, networking
- domain: web-development, backend, networking
- platform: windows, php
- tags: coroutines, event-driven, php-extension, high-performance, async-io, real-time, linux, macos, docker

## Member repositories
- swoole/swoole-src (main) score 96

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:27.209517+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-29T17:01:16.183355+00:00, confidence not recorded.
  - readme: https://github.com/swoole/swoole-src (fetched 2026-08-28T04:11:27.209517+00:00, sha 03ad136c7c10)
  - homepage: https://www.swoole.com (fetched 2026-08-29T07:59:11.309403+00:00, sha c21de788077c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
