Open Swoole News and Tutorial

PHP 8.6 Polling API vs the OpenSwoole Reactor

PHP 8.6 adds a native Polling API (Io\Poll) backed by epoll and kqueue, replacing stream_select() for event-driven code. What it does, what it leaves out, and how it compares with the OpenSwoole reactor, coroutines and io_uring.

New Features and Changes in PHP 8.6

PHP 8.6 is scheduled for release on 19 November 2026. A tour of what is new: partial function application, clamp(), Time\Duration, readonly property defaults, the Polling API, new session defaults and the deprecations to fix before you upgrade.

Debug OpenSwoole Coroutines with Xdebug Step Debugging

OpenSwoole 26.2.0 fiber context lets you step through coroutines with Xdebug in PhpStorm and VS Code. Set breakpoints, inspect variables across coroutine switches, and profile with Blackfire — all working properly for the first time.

Build a Production Health Check with OpenSwoole Event Loop Lag Metrics

Learn how to use OpenSwoole 26.2.0 event loop lag metrics to build a production-ready health check endpoint that helps load balancers detect and route around unhealthy workers.

MemVector: Vector Search, Embeddings and RAG in a PHP Extension

MemVector is a PHP extension for local vector storage, embedding generation and similarity search. This post shows how to use it with OpenSwoole for persistent in-process vector operations, and with PHP-FPM and Laravel for disk-backed vector search.

OpenSwoole 26.2.0 released with PHP 8.5 support

OpenSwoole 26.2.0 released with PHP 8.5 support, native Fiber coroutine context, io_uring reactor, Xdebug step debugging, event loop lag metrics and more.

New Features and Changes in PHP 8.5 and OpenSwoole 26.2.0

Discover the top new features in PHP 8.5 including the Pipe Operator, URI extension, Clone With, and more. OpenSwoole 26.2.0 has been released with full PHP 8.5 support.

OpenSwoole 25.2.0 released with PHP 8.4 support

OpenSwoole 25.2.0 released with PHP 8.4 support

Exploring New Features and Changes in PHP 8.4

Dive into the latest updates in PHP 8.4 with practical examples

Implementing Database Connection Pool and Managing Concurrency with OpenSwoole GRPC

Securing Your Database with OpenSwoole GRPC: Implementing Connection Pool and Concurrency Control

OpenSwoole 22.0.0 released for PHP 8.2 and Psr, GRPC

OpenSwoole 22.0.0 released including compatibility improvements for PHP 8.2 and new features.

OpenSwoole 4.12.0 released with PHP 8.2 support and new features

OpenSwoole 4.11.2 is release including compatibility improvements for PHP 8.2 and new features.

Introducing OpenSwoole 2022 GRPC

Introducing OpenSwoole 2022 GRPC

Introducing CalVer and SemVer

Introducing Calver and Semver and OpenSwoole version system

Open Swoole 4.11.1 released with multiple bug fixes

Open Swoole 4.11.1 is a bug fix release with multiple bugs and compatibility improvements for curl and CentOS 7.

Open Swoole 4.11.0 released with HTTP2 improvements, PHP GRPC server, bug fixes and more

Open Swoole 4.11.0 is a major release with multiple HTTP2 new features, bug fixes and improvements for building reliable GRPC services.

Open Swoole 4.10.0 released with coroutine selector, HTTP2 SSE streaming, sleep data type bug fixes and more

Open Swoole 4.10.0 released: Coroutine Channel selector, data type fixes and more

How to install Open Swoole on Ubuntu and Windows WSL

Open Swoole Ubuntu prebuilt packages are available at Ubuntu's PPA Repo on 30th Dec 2021.

Open Swoole 4.9.0 released: Server Metrics, Cloud Native OpenMetrics support and more

Open Swoole 4.9.0 released: New Server Metrics, Cloud Native OpenMetrics support, Dashboard and enhancements

Open Swoole IDE Helper released with enhanced type hinting for IDE

Open Swoole IDE Helper released with enhanced type hinting for IDE

Open Swoole 4.8.1 Docker images released with PHP 8.1 support

Open Swoole 4.8.1 Docker images released with PHP 8.1 support

Open Swoole 4.8.0 released: PHP 8.1 support, PostgreSQL support and enhancements

Open Swoole 4.8.0 released: PHP 8.1 support, Swoole Table bug fixes and enhancements

PHP 8.1: What's New and Changed, Features and update

PHP 8.1: What's new and Changed, features and update

Open Swoole 4.7.2 released: bug fixes for PHP8.0, HTTP2 and enhancements

Open Swoole 4.7.2 released: bug fixes for PHP8.0, HTTP2 and enhancements

Open Swoole 4.7.1 released: introduce a new concurrency mode, bug fixes and enhancements

Open Swoole 4.7.1 released: introduce a new concurrency mode, bug fixes and enhancements

Open Swoole 4.7.0 released: multiple new APIs, features, fixes and enhancements

Open Swoole 4.7.0 released: multiple new APIs, features, fixes and enhancements

Video: Laravel Octane with Swoole

A deeper look into Laravel Octane with Swoole.

Isolating global variables with a coroutine context manager in Swoole

How to isolate variables within Swoole coroutines.

Open Swoole 4.6.7 released: bug fixes and enhancements

Open Swoole 4.6.7 released: bug fixes and enhancements.

Open Swoole 4.6.6 released: bug fixes and enhancements

Open Swoole 4.6.6 released: bug fixes and enhancements.

Open Swoole 4.6.5 released: full support of CURL native in coroutines, bug fixes and more

Open Swoole 4.6.5 released: full support of CURL native in coroutines, bug fixes and more.

PHP Fibers RFC in PHP 8.1 vs Swoole Fibers and Coroutines

How do PHP Fibers compare against Swoole Fibers/Coroutines

Open Swoole 4.6.4 released: support MacOS M1 (ARM 64 build), bug fixes and more

Open Swoole 4.6.4 released: MacOS M1 ARM 64 build, bug fixes and more.

Open Swoole 4.6.3 released: set Content-Length header, compression_min_length and more

Swoole v4.6.3 is released with multiple new features and enhancement today.

Open Swoole 4.6.2 released: new Coroutine\Socket API, Request::getMethod() and more

Swoole v4.6.2 is released with multiple new features and enhancement recently.

PHP Community: Open Source PHP Security Checker by Symfony

Get free and Open Source PHP Security Checker without external API

Open Swoole 4.6.0 released: new HTTP API, Native CURL, Sockets hooks and more

With Swoole PHP, you can write the async applications with sequential codes in a Open Swoole fiber and coroutine to avoid callback hell like the other callback-based async frameworks.

Open Swoole 4.5.9 released for PHP 8.0.0

Swoole v4.5.9 released today with multiple new features and enhancement. The major changes are compliantable with the PHP 8.0.0 released today.

Open Swoole 4.5.5 released: HTTP2 GOAWAY, PHP 8 Support, Co\map and more

Swoole v4.5.5 is released today with multiple new features and enhancement. Process\Manager is added as an alias of Swoole\Process\ProcessManager.

Open Swoole 4.5.4 released

Swoole v4.5.4 is released with multiple new features and enhancement. The major change included in this version is:

Open Swoole 4.5.3 released

Swoole v4.5.3 is released with multiple new features and enhancement. Swoole Process Manager can be used to manage multiple different functions and execute…

Swoole and PSR

I've been using Swoole actively for a couple years, maybe more. It has covered all my needs, the common ones, as those requests similar to "hello world", and…

Coroutine Based Concurrency with PHP and Swoole

By Bruce Dou @ Swoole Labs @ PHP Conference at London UK PHP Swoole has gained traction during the past several years. More and more people are interested…

Swoole Symfony Integration Guide

The community is asking for how to use Swoole with Symfony and how to integrate a Symfony project with Open Swoole.

Build a GraphQL API with Siler on top of Swoole

By @leocavalcante I'm assuming you already know what is GraphQL and Swoole, so what about getting started right straight to the code, shall we?

Preemptive multitasking using coroutines in Open Swoole

By Bruce Dou @ Swoole Labs @ PHPLondon at London UK PHP Swoole enables PHP developers to write high-performance, scalable, concurrent TCP, UDP, Unix socket…

Streaming camera for Hamster - Using Raspberry Pi and PHP’s Swoole

@ PHP study meetup at Tokyo In Japan How to build a video streaming system based on PHP and Swoole.

Using Swoole and Redis for Message Queue and PubSub

By Bruce Dou @ Swoole Labs Redis provides the commands for message queue and pubsub: RPUSH, BLPOP, PUBLISH, SUBSCRIBE.

The power of coroutine in Open Swoole: Go, Chan and Defer

Coroutine features are mature in Open Swoole since version 4.x. Swoole provides the powerful CSP (Communicating sequential processes) programming model with…

Speed up Laravel with Open Swoole

There are several open source libraries built for Laravel and Swoole integration: Laravel Swoole, Laravel-S. https://github.com/swooletw/laravel-swoole

Get started with Swoole 4.2.9 PHP 7.2 and Docker

This article introduce how to get started with Swoole without manually compile the Open Swoole extension. Docker make it easy for us to try Swoole with only…

Coroutine in Open Swoole 4.x vs Coroutine in Golang

The design of coroutine in Open Swoole is similar to the coroutine in Golang: The coroutine scheduler in Golang is multiple threads design. There are multiple…

Blazingly-Fast, Event-Driven, Asynchronous PHP

By Christoph Lühr @ Berlin PHP Usergroup Blazingly-Fast, Event-Driven, Asynchronous PHP

Asynchronous programming with PHP

Asynchronous programming with PHP: By Bruce Dou @ Swoole Labs