Getting started with asynchronous PHP using ReactPHP

This page summarizes the projects mentioned and recommended in the original post on dev.to

Cloudways' Black Friday Offer - 1st Choice of Developers
Cloudways: Devs' 1st choice for managed hosting! Pick from top-tier Cloud providers like DigitalOcean, AWS, and GCE. Limited-time deal: 40% OFF for 4 Months + 40 Free Migrations.
platform.cloudways.com
featured
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
  • reactphp-demo

    The codes used in this article are in this GitHub repo.

  • Cloudways

    Cloudways' Black Friday Offer - 1st Choice of Developers. Cloudways: Devs' 1st choice for managed hosting! Pick from top-tier Cloud providers like DigitalOcean, AWS, and GCE. Limited-time deal: 40% OFF for 4 Months + 40 Free Migrations.

    Cloudways logo
  • event-loop

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

    ReactPHP has various components, such as the event loop, promise, and streams. When you install ReactPHP, these components and a few more are installed, so you don’t have to install the separately.

  • child-process

    Event-driven library for executing child processes with ReactPHP.

    ReactPHP provides the Child Process utility component as a means to make non-blocking I/O calls. This integrates operating system calls, such as curl or cat, into the event loop so that we can attach a callback function for when specific events happen in the operating system calls we executed.

  • React

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

    ReactPHP is a library that allows you to turn PHP into something like Go or Node.js so that tasks can be performed asynchronously. Note that ReactPHP is just a library that you install with Composer. It doesn’t have cumbersome requirements, such as installing a custom PHP extension; it just works as intended.

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

  • Does PHP really not support asynchronous calls natively?

    2 projects | /r/PHP | 6 May 2021
  • Concurrency and parallelism in PHP (part 1)

    5 projects | dev.to | 29 Jul 2024
  • ReactPHP – Event-driven, non-blocking I/O with PHP

    1 project | news.ycombinator.com | 24 Jun 2024
  • ReactPHP: Event-driven, non-blocking I/O in pure PHP

    1 project | news.ycombinator.com | 30 May 2024
  • Understanding Concurrency in PHP

    1 project | dev.to | 29 Jun 2023