Does PHP really not support asynchronous calls natively?

This page summarizes the projects mentioned and recommended in the original post on /r/PHP

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • React

    Event-driven, non-blocking I/O with PHP.

  • 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.

  • event-loop

    ReactPHP's core reactor event loop that libraries can use for evented I/O.

  • 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

  • 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.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts