awesome-swoole
๐ A curated list of awesome things related to Swoole.
https://github.com/swoole/awesome-swoole
Last synced: 6 days ago
JSON representation
AI
- dtyq/magic - An open-source enterprise AI agent platform with agents, workflows, and chat. Its backend is built on Hyperf. ๐งฉ
- gptlink/gptlink - A self-hosted AI chat website with user management, paid plans, and an admin console, built on Hyperf and Vue. ๐ ๐งฉ
Architectural
- leocarmo/circuit-breaker-php - PHP implementation of Circuit Breaker Pattern.
Client Packages
- hyperf/jet - An RPC Client with built-in support for the JSON-RPC protocol. It works with both PHP-FPM and Swoole. ๐งฉ
- hyperf/consul - The [Consul] client of Hyperf. ๐งฉ
- hyperf/elasticsearch - The [Elasticsearch] client of Hyperf. ๐งฉ
- hyperf/etcd - The etcd client of Hyperf. ๐งฉ
- simps/mqtt - A coroutine-based MQTT client. It supports MQTT version 3.1, 3.1.1, and 5.0.
-
swoole/ext-postgresql
- A Swoole-based PostgreSQL client. The repository has been archived by its owner. PostgreSQL support is now built into Swoole itself, enabled at compile time with the
--enable-swoole-pgsqlflag. - swoole/ext-zookeeper - A Swoole-based ZooKeeper client. ๐
Cronjobs
- hyperf/crontab - The cron component of Hyperf, allowing jobs to run at intervals of seconds. ๐งฉ
- osgochina/swoole-crontab - A Swoole-based crontab scheduler. It allows jobs to run at intervals of seconds, and is fully compatible with crontab syntax. ๐
- hyperf/xxl-job-incubator - A job executor for the XXL-JOB distributed task scheduling platform, adapted for Hyperf. ๐ ๐งฉ
Database
- hyperf/database - The database component of Hyperf. ๐งฉ
- mix/database - A Swoole-based database component, with built-in support for connection pooling. ๐
- mix/redis - A Swoole-based Redis component, with built-in support for connection pooling. ๐
- mix/redis-subscriber - A Swoole-based Redis subscription component. ๐
- open-smf/connection-pool - A common connection pool based on Swoole.
- simple-swoole/db - The database component of Simps. This component is built on top of the Swoole Library.
- SMProxy - SMProxy (Swoole MySQL Proxy), A MySQL database connection pool library. ๐
- kvnZero/hyperf-APIJSON - An implementation of APIJSON, a JSON-based protocol and ORM for building CRUD APIs without writing backend code, built on Hyperf. ๐ ๐งฉ
Debugging and Profiling
- upscale/swoole-blackfire - Blackfire profiler integration for Swoole web server.
- swoole/debugger - A remote debugger of Swoole. By adding one line of code, you can debug your application remotely using a rich list of commands. The project has not been updated since 2021. Please use Xdebug instead. ๐
- upscale/swoole-newrelic - New Relic APM and Browser monitoring of Swoole web server.
- apache/skywalking-php - The PHP Agent for Apache SkyWalking, which provides native tracing and PHP Health Metrics (PHM) runtime reporting for PHP and Swoole projects.
- Xdebug - A debugging and profiling tool for PHP. Xdebug 3.1.0+ works with Swoole 5.0.2+ on PHP 8.1+ only. Lower versions of Xdebug don't work with Swoole.
Development Environment
- Swoole IDE Helper - Swoole IDE Helper for PhpStorm and IntelliJ IDEA. Thanks to Luhur Abdi (Abi) Rizal for maintaining it.
- adhocore/lemp - A single-container LEMP development stack with PHP 7.4โ8.3, nginx, MySQL, PostgreSQL, Swoole, Redis, and other common services.
- phpswoole/swoole - Official Docker image of Swoole.
- swoole/ide-helper - IDE helper files to provide accurate autocompletion for Swoole.
Distribution
- shivammathur/extensions - ๐ป Homebrew tap for PHP extensions.
- static-php-cli - Build static PHP binary in Linux, with Swoole and other popular extensions included.
- swoole-cli - A prebuilt executable to run Swoole applications directly. No PHP installation required (just download and use it). Supports Linux, macOS, and Windows.
Framework Integration
- The Swoole module for Drupal - Serves a Drupal site with the Swoole or OpenSwoole HTTP server, which boots Drupal once and keeps it in memory between requests. Thanks to daffie.
- mezzio/mezzio-swoole - Provides Swoole support for Mezzio applications.
-
PHP Runtimes
- A home for runtimes, where people can easily create a
Runtimeto run an application with Bref, Swoole or ReactPHP without making any change to the application itself. - Laravel Octane - A first-party Laravel package that boosts application performance by serving it with long-running application servers such as Swoole. Developed and maintained by the Laravel team.
- hhxsv5/laravel-s - An out-of-the-box adapter between Laravel/Lumen and Swoole.
- huang-yi/shadowfax - Runs your Laravel application on Swoole.
- scil/laravel-fly - A package to speed up Laravel with Swoole, with preloading, coroutine support, and an online Tinker. The repository was archived by its owner in 2024. Please use Laravel Octane instead.
- swooletw/laravel-swoole - A high-performance HTTP server to run Laravel/Lumen applications on top of Swoole. The repository was archived by its owner in 2025. Its authors recommend Laravel Octane instead, or Hypervel if you need coroutine support.
- toxmc/fast-laravel - A Swoole-based high-performance HTTP server to speed up your Laravel applications. The project has not been updated since 2021. Please use Laravel Octane instead. ๐
- phwoolcon/phwoolcon - Runs Phalcon applications on Swoole. The project has not been updated since 2019.
- pachico/Slim-Swoole - A convenient library to run SlimPHP applications with Swoole. The repository was archived by its owner in 2023, and no direct replacement is known.
- symfony/runtime - The Runtime component decouples the bootstrapping logic from any global state to make sure the application can run with runtimes like PHP-FPM, ReactPHP, Swoole, etc. without any changes. For a more generic implementation that works with other frameworks/environments, please check project PHP Runtimes.
- topthink/think-swoole - Runs ThinkPHP applications with Swoole. ๐
- liufee/yii2-swoole - Runs Yii 2 applications with Swoole. ๐
- WordPress Swoole - Runs WordPress on Swoole.
- klsoft/yii3-swoole - The package provides the Swoole HTTP server for the Yii 3 application.
- innerloop-dev/lightspeed - A Pusher-compatible WebSocket server for Laravel on Swoole that serves HTTP and WebSocket traffic on one port. Browsers can send authenticated messages to the application and receive responses over the same connection.
Frameworks
- chubbyphp-framework - A minimal, middleware-based microframework using PSR standards, with the goal of achieving the best combination of flexibility and simplicity.
- Fomo - A simple, fast framework for building HTTP applications. The repository was archived by its owner in 2025.
- Hyperf - A coroutine framework that focuses on hyperspeed and flexibility.
- Nano - A Hyperf-based coroutine microframework. ๐งฉ
- imi - A Swoole-based framework, with built-in support for HTTP/1, HTTP/2, WebSocket, TCP, UDP, and MQTT. ๐
- Siler - A set of general-purpose, high-level abstractions for declarative programming in PHP. The repository was archived by its owner in 2022.
- lizhichao/one - A simple and efficient framework that works both under PHP-FPM and Swoole.
- Mix PHP - A single-threaded, coroutine-based framework. ๐
- Polyel - A full-stack MVC PHP framework/server built from the ground up based on Swoole.
- Resonance - Designed from the ground up to facilitate interoperability and messaging between services in your infrastructure and beyond. The repository was archived by its owner in 2026.
- QueryPHP - A modern, high performance PHP progressive coroutine framework. ๐
- Simps - A lightweight PHP coroutine framework.
- Ubiquity - A PHP MVC framework that can run on PHP-FPM or on async servers such as Swoole.
- Blink - A high-performance web framework and application server for PHP, with built-in support for running under Swoole.
- fastD - A high-performance PHP API framework built on the Swoole extension. ๐
- Hypervel - A Laravel-style framework with native coroutine support for high performance, built on top of Swoole.
- LightMVC - A modular, event-driven and Swoole-enabled framework that makes it easy to create PHP applications using any PHP library.
- ManaPHP - A full-stack PHP framework that supports both Swoole and PHP-FPM modes.
- Restler - A zero-boilerplate REST API framework for PHP 8+, with built-in support for running under the Swoole or OpenSwoole HTTP server.
- Swoolefy - A lightweight, coroutine-based API application framework built on Swoole. ๐
- ThinkCMF - An open-source content management framework built on ThinkPHP, supporting both PHP-FPM and Swoole modes. ๐
- Semitexa - A modular PHP 8.4 framework running on long-lived Swoole workers, with server-side rendering and deferred blocks streamed over SSE.
gRPC
- hyperf/grpc-client - The gRPC client component of Hyperf. ๐งฉ
- hyperf/grpc-server - The gRPC server component of Hyperf. ๐งฉ
- mix/grpc - A gRPC implementation based on Swoole. Protoc code generator, server, client, and more features included. ๐
- swoole/grpc - An efficient Swoole-based gRPC client. ๐
HTTP and WebSocket
- chubbyphp/chubbyphp-swoole-request-handler - A request handler adapter for Swoole, using PSR-7, PSR-15 and PSR-17.
- leocavalcante/request-callback - Swoole request callback for PSR-compliant handlers. Compatible with PSR-7 and PSR-15.
- fastd/http - A PSR-7-compatible HTTP component, with built-in support for Swoole HTTP server. ๐
- razonyang/psr7-swoole - A PSR-7 helper for Swoole; a bridge between Swoole and PSR things, such as PSR-7 HTTP message, PSR-15 handlers and PSR-15 middlewares.
- Saber - A coroutine-based HTTP client. ๐
- Yurunsoft/Guzzle-Swoole - Makes the Guzzle library coroutine-friendly in Swoole. It works with many Guzzle-based packages and Swoole-based frameworks. ๐
- Yurunsoft/YurunHttp - An easy-to-use HTTP client that works with HTTP/1, HTTP/2, and WebSocket protocols. It also supports chained operations, concurrent processing, and connection pooling. ๐
- Utopia WebSocket - A simple and lite abstraction layer around a WebSocket server. This library is aiming to be as simple and easy to learn and use.
- hhxsv5/php-sse - A library that implements HTML5 server-sent events (SSE) in PHP.
Logging
- hyperf/logger - The logging component of Hyperf. It's based on Monolog, with PSR-3 interface implemented. ๐งฉ
- mix/monolog - A coroutine-friendly logging library. It's based on Monolog. ๐
Miscellaneous
- mix/sync-invoke - A library to execute synchronous blocking code without blocking the running process in Swoole. ๐
- yurun-crawler - A framework to build high-performance, distributed web crawler. ๐
- zhamao-framework - A chatbot system based on an award-winning project in China. ๐
- crowdstar/exponential-backoff - A library to prevent overloading an unavailable service by doubling the timeout each iteration. It works under both Swoole (in non-blocking mode) and PHP-FPM.
- leocavalcante/swoole-futures - Futures + Async/Await for PHP's Swoole asynchronous run-time.
- k8s/client - A Kubernetes API client for PHP, with a Swoole-based WebSocket adapter for exec, attach, and port-forwarding.
- leocavalcante/swoole-mutex - Mutual exclusion abstractions for PHP's Swoole concurrency run-time.
- deminy/swoole-by-examples - Learn Swoole by examples.
- siteone-crawler - A Swoole-based cross-platform website crawler, cloner, and analyzer for SEO, security, accessibility, and performance audits. It runs on Windows, macOS, and Linux, and is also available as a desktop application built with Svelte and Electron.
Serverless
- Swoole Runtime for AWS Lambda - ฮป Run PHP Coroutines & Fibers as-a-Service on the AWS Lambda.
SOA Governance
- hyperf/tracer - The distributed tracing component of Hyperf. The implementation is based on OpenTracing. ๐งฉ
- mix/tracing-zipkin - A tracing library based on Zipkin and OpenTracing. ๐
- TarsPHP - PHP support for the Tars microservice platform, providing the Tars binary protocol, an RPC client, and Swoole-based TCP, HTTP, and timer servers.
Swoole Books
- Mastering Swoole PHP - A book on building high-performance, concurrent systems with Swoole and PHP 8.
- SwooleใงๅญฆใถPHP้ๅๆๅฆ็ใ๏ฝไธฆ่กๅฆ็๏ผไธฆๅๅฆ็ใฎๅบ็คใใๅฎ่ทต็ใช้็บๆๆณใพใงไธๆฐใซใใใ - Learning PHP asynchronous processing with Swoole: from the basics of parallel processing to practical development methods. The first Swoole book written in Japanese by ใใใใผ. ๐
Swoole Videos
- CSP Programming in PHP - An online talk presented by Demin on August 20, 2020. This talk gives an in-depth explanation of the concurrency model used in Swoole. Here are the slides.
- Building High-Performance Application Servers with Swoole - A conference talk presented by Demin during PHPFest 2020. Here are the slides.
- Build an All-In-One Application Server Using Swoole - A conference talk presented by Demin during PHP Community Summit 2021. The talk starts at 20'55''. Here are the slides.
Tasks and Queues
- hyperf/amqp - The AMQP client of Hyperf. ๐งฉ
- hyperf/async-queue - The Redis-based asynchronous queue component of Hyperf. ๐งฉ
- hyperf/task - The task component of Hyperf, providing an easy way to add and dispatch tasks to task workers in Swoole. ๐งฉ
- Archer - A Swoole-based task component, with different runtime modes supported: serial queue, concurrent queue, defer, timer, etc. ๐
- kcloze/swoole-jobs - An efficient Swoole-based job queue system. ๐
- longlang/phpkafka - A coroutine-based Kafka client.
Testing
- deminy/counit - Runs time- and I/O-related unit tests (e.g., sleep function calls, database queries, API calls) faster using Swoole.
Third-party SDK
- yansongda/pay - A payment SDK for Alipay and WeChat Pay, with components to integrate with Hyperf, Laravel, and Yii. ๐
- Yurunsoft/PaySDK - A coroutine-friendly payment SDK for Alipay and WeChat Pay. ๐
- Yurunsoft/YurunOAuthLogin - An OAuth library that provides built-in support for QQ, WeChat, Weibo, GitHub, Gitee, etc. ๐
Web Applications
- HyperfAdmin - An administration panel built with Swoole, Hyperf, and Vue.js. ๐ ๐งฉ
- wopits - A world of post-its - An app for managing projects online using sticky notes to share and collaborate. It uses Swoole as a WebSocket & Task server. The repository was archived by its owner in 2026.
- onchat - A mobile-first instant messaging progressive web application, using Swoole for its WebSocket backend. ๐
- appwrite/appwrite - An open-source backend platform providing authentication, databases, storage, functions, messaging, and realtime APIs, built on Swoole.