Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
So I came to the conclusion that what PHP misses right now to have a real async native support is the event loop, but the rest is present in the language. I never used async PHP but I checked the Swoole library and the tool requires a specific pecl extension (`swoole`). On the other hand, for ReactPHP no extension is necessary: their event loop seems to run on native PHP.
It can run without an extension, but for best performance, one of libuv, libev or libevent should be installed to accelerate performance, otherwise it uses stream_select() which doesn't require an extension but has worse performance. See https://github.com/reactphp/event-loop#loop-implementations