event-loop
Revolt is a rock-solid event loop for concurrent PHP applications. (by revoltphp)
moebius
True coroutines for PHP>=8.1 without worrying about event loops and callbacks. (by moebiusphp)
event-loop | moebius | |
---|---|---|
8 | 3 | |
766 | 216 | |
0.8% | 0.0% | |
6.4 | 0.0 | |
about 1 month ago | almost 2 years 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 2022-11-01.
-
What’s next after Fibers?
Revolt is ready and has a 1.0 release: https://github.com/revoltphp/event-loop/releases
-
Asynchronous PHP without event loop?
We've built Revolt to abstract fibers in an Suspension API that just works. The same code works when called directly and within fibers. Suspensions switch to the event loop as needed. If there's just one pending event, it'll behave similar to blocking I/O.
-
True coroutines like Go
Couldn't you use https://github.com/revoltphp/event-loop to allow other event loop implementations to get around that 1024 connections issue? Seems like a better idea to use this common event loop impl rather than write your own.
-
Heaps explained in PHP | Quick access to the highest or lowest value of a dataset
A very nice real world example of a Heap implemented with a PHP array can be found in the revolt/event-loop package.
-
Heaps explained in PHP
I wrote an array-based heap implementation years ago for fun and practice. It eventually found use in Amp, and now Revolt, for O(log(n)) ordering event-loop timers in the stream_select-based loop: https://github.com/revoltphp/event-loop/blob/a928073cc74501c1852fd9d8c8b02e550cb56517/src/EventLoop/Internal/TimerQueue.php
- Revolt, a collaborative event loop and fibers for writing async PHP libraries
- Revolt, a rock-solid, collaborative event loop and fiber abstraction for writing interoperable async PHP libraries.
- Revolt PHP, the 8.1 collab between Amphp and ReactPHP has launched
moebius
Posts with mentions or reviews of moebius.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-28.
-
What have fibers been used for so far?
I've been watching this project: https://github.com/moebiusphp/moebius
- True coroutines like Go
- Native and transparent PHP coroutines and async/await without Swoole
What are some alternatives?
When comparing event-loop and moebius you can also consider the following projects:
laravel-short-schedule - Schedule artisan commands to run at a sub-minute frequency
async - Async utilities and fibers for ReactPHP.