event-loop
ReactPHP's core reactor event loop that libraries can use for evented I/O. (by reactphp)
child-process
Event-driven library for executing child processes with ReactPHP. (by reactphp)
Our great sponsors
event-loop | child-process | |
---|---|---|
4 | 2 | |
1,194 | 272 | |
1.0% | 0.0% | |
5.3 | 2.6 | |
2 months ago | 4 months ago | |
PHP | PHP | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
event-loop
Posts with mentions or reviews of event-loop.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-05.
-
Getting started with asynchronous PHP using ReactPHP
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.
-
Where does PHP being single threaded affect performance and can anything be done to make it better?
For that things PHP usually uses external help in form of queues in Redis or other DBs. And then one process which spawn other ones. Did you heard about Event Loop, pcntl_fork() and php-cli from crontab? That solves the whole problem in the world before Fibers.
-
Does PHP really not support asynchronous calls natively?
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
-
What is best and easiest library (packagist) for async process in PHP?
which package? is it reactphp/event-loop?
child-process
Posts with mentions or reviews of child-process.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-05.
-
Getting started with asynchronous PHP using 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.
-
What is best and easiest library (packagist) for async process in PHP?
Easiest solution is https://github.com/reactphp/child-process in my opinion which comes as a composer pkg.
What are some alternatives?
When comparing event-loop and child-process you can also consider the following projects:
react-fiber - ReactPHP + ext-fiber
async - Easily run code asynchronously
React - Event-driven, non-blocking I/O with PHP.
socket - Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP.
ReactPHP Promises Testing - PHPUnit assertions for testing ReactPHP promises
PHP-watcher - Monitor for any changes in your php application and automatically restart it (suitable for async apps).
excelize - Go language library for reading and writing Microsoft Excel™ (XLAM / XLSM / XLSX / XLTM / XLTX) spreadsheets