# Swoole

> Coroutine-based concurrency library for PHP

Source: https://talira.ai/catalog/swoole-mk0831bk
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [frameworks / web / backend](https://talira.ai/categories/frameworks/web/backend), [languages / php](https://talira.ai/categories/languages/php)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source.
- Free tier: yes[^2]
- Self-hostable: yes[^1]
- Backed by: [Swoole Project](https://talira.ai/orgs/swoole.md)

Swoole is a [PHP](https://talira.ai/catalog/php-xgsnpvzp.md) extension, with a C/C++ core, for building persistent network services and concurrent I/O applications. It provides an event loop and coroutine scheduler, event-driven TCP, UDP and Unix socket servers, HTTP and WebSocket servers, coroutine TCP and HTTP clients, runtime hooks that make supported PHP functions coroutine-aware, processes, shared memory tables and atomics, and timers. Servers run several long-lived worker processes to use every CPU core, with coroutines for concurrent I/O inside each worker. It installs with pecl install swoole.

## Links

- Website: https://www.swoole.com/
- GitHub: https://github.com/swoole/swoole-src

## Problems it solves

- run PHP as a long-lived async server instead of PHP-FPM
- handle thousands of concurrent connections in PHP
- build a WebSocket server in PHP
- make concurrent HTTP calls from PHP with coroutines

## Features

- event loop and coroutine scheduler
- TCP, UDP and Unix socket servers
- HTTP and WebSocket servers
- coroutine clients
- runtime hooks for PHP functions
- processes, shared tables and atomics
- timers

## Limitations

- Workers are long-lived: global and static state and open resources survive between requests, so per-request data must stay out of process state[^1]

## Trust

Overall: 0.27 out of 1.
Signals: backing 0.30, extensibility 0.00.

- backed by Swoole Project

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [FrankenPHP](https://talira.ai/catalog/frankenphp-x74ff8ed.md): The modern PHP app server, written in Go

## Sources

[^1]: https://github.com/swoole/swoole-src (checked 24 Nov 2026)
[^2]: https://github.com/swoole/swoole-src/blob/master/LICENSE (checked 24 Nov 2026)
