Differences among Asynchronous PHP libraries: ReactPHP | amphp | Parallel (pThreads) | Swoole | Fibers | Spatie

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

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

    An advanced parallelization library for PHP, enabling efficient multitasking, optimizing resource use, and application responsiveness through multiple CPU threads. (by amphp)

  • amphp (& amphp parallel ?)

  • parallel

    A succinct parallel concurrency API for PHP8 (by krakjoe)

  • Parallel [pThreads successor] (comes as extension too)

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • async-php-8-io-http

    True asynchronous PHP I/O and HTTP without frameworks, extensions, or annoying code. Uses PHP Fibers introduced in PHP 8.1

  • PHP 8 Fibers

  • async

    Easily run code asynchronously (by spatie)

  • Spatie

  • Swoole

    🚀 Coroutine-based concurrency library for PHP

  • Swoole (comes as extension too)

  • coroutine

    Cooperative multitasking using generators. The basics of coroutines, async and await! (by symplely)

  • Yes, you missed one at https://symplely.github.io/coroutine/

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