PHP Swoole Articles and Tutorial

  • Coroutine in PHP Swoole 4.x vs Coroutine in Golang

    The design of coroutine in PHP Swoole is similar to the coroutine in Golang:

    • Each coroutine has it's own stack.
    • The context switching between different coroutine is controlled by scheduler.

    But there are some differences between the coroutine in PHP Swoole and the coroutine in Golang:

  • 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 Swoole PHP extension.

    Docker make it easy for us to try Swoole with only several commands.

    Make sure you have installed Docker on your machine and updated the swoole version to be the latest version.