Coroutine features are mature in PHP Swoole since version 4.x. Swoole provides the powerful CSP (Communicating sequential processes) programming model with three keywords: go, chan, defer.
There are several open source libraries built for Laravel and Swoole integration: Laravel Swoole, Laravel-S.
The design of coroutine in PHP Swoole is similar to the coroutine in Golang:
This article introduce how to get started with Swoole without manually compile the Swoole PHP extension.
By Christoph Lühr
@ Berlin PHP Usergroup
Blazingly-Fast, Event-Driven, Asynchronous PHP
Join 1,000s others and never miss out on new tips, tutorials, and more.