parallel
An advanced parallelization library for PHP, enabling efficient multitasking, optimizing resource use, and application responsiveness through multiple CPU threads. (by amphp)
coroutine
Cooperative multitasking using generators. The basics of coroutines, async and await! (by symplely)
parallel | coroutine | |
---|---|---|
4 | 4 | |
745 | 58 | |
1.6% | - | |
7.6 | 4.7 | |
about 1 month ago | 11 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.
parallel
Posts with mentions or reviews of parallel.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-27.
- amphp/parallel v2.0.0 has been released
-
Is it possible that PHP will ever get async/await functions?
You can leverage https://github.com/amphp/parallel or https://github.com/spatie/async without changing the app much.
-
Concurrency framework amphp has been installed nearly 27 million times in the last three years but I rarely hear it used in production maybe reason is my location. Do you use it for production?What kind of projects?
it doesn't use fork to dispatch not anymore I suppose, when I last tried it that was the case. upon checking the code https://github.com/amphp/parallel/blob/master/lib/Worker/DefaultWorkerFactory.php they are now checking for various extensions like parallel or pthread and then defaulting to generators. so it uses generators now.
-
Differences among Asynchronous PHP libraries: ReactPHP | amphp | Parallel (pThreads) | Swoole | Fibers | Spatie
amphp (& amphp parallel ?)
coroutine
Posts with mentions or reviews of coroutine.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-05-30.
-
Differences among Asynchronous PHP libraries: ReactPHP | amphp | Parallel (pThreads) | Swoole | Fibers | Spatie
Yes, you missed one at https://symplely.github.io/coroutine/
- Asynchronous PHP — Multiprocessing, Multithreading & Coroutines - Diving Laravel
- A Look at the New PHP 8.1 Fibers Feature
What are some alternatives?
When comparing parallel and coroutine you can also consider the following projects:
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
Swoole - 🚀 Coroutine-based concurrency library for PHP
Symfony2 Components - The Symfony documentation
async - Easily run code asynchronously
Workerman - An asynchronous event driven PHP socket framework. Supports HTTP, Websocket, SSL and other custom protocols.
parallel - A succinct parallel concurrency API for PHP8
php-ulid - A PHP port of alizain/ulid with some minor improvements.
MadelineProto - Async PHP client API for the telegram MTProto protocol
Amp - A non-blocking concurrency framework for PHP applications. 🐘