child-process
Event-driven library for executing child processes with ReactPHP. (by reactphp)
promise
Promises/A implementation for PHP. (by reactphp)
child-process | promise | |
---|---|---|
2 | 1 | |
273 | 2,337 | |
0.4% | 0.7% | |
2.6 | 5.2 | |
4 months ago | about 2 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.
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.
promise
Posts with mentions or reviews of promise.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-27.
-
Is it possible that PHP will ever get async/await functions?
Promises are a solution to asynchronicity in general. Promises are more of a specification, so anything claiming to implement Promises solves the same class of problem in the same way. Since php doesn't have language level wrappers for Await behavior it is going to look weird. Either you use something Object Oriented like Promises to handle the timing/async of your calls, or you use something functional like the pcntl functions to handle Process Control of multiple interdependent processes and the pipes/sockets between them. There are also separate Asnycronous libraries available that have a slightly different interface, but they probably just use promises in the backend. See https://github.com/reactphp/async and https://github.com/reactphp/promise for instance if you don't like curl.
What are some alternatives?
When comparing child-process and promise you can also consider the following projects:
async - Easily run code asynchronously
socket - Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP.
parallel - An advanced parallelization library for PHP, enabling efficient multitasking, optimizing resource use, and application responsiveness through multiple CPU threads.
React - Event-driven, non-blocking I/O with PHP.
async - Async utilities and fibers for ReactPHP.