async
ext-openswoole
async | ext-openswoole | |
---|---|---|
2 | 34 | |
175 | 791 | |
2.3% | 0.6% | |
3.0 | 8.2 | |
15 days ago | 5 months ago | |
PHP | C++ | |
MIT License | Apache License 2.0 |
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.
async
-
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 have fibers been used for so far?
ReactPHP uses Fibers through react/async starting from version 4 of the library.
ext-openswoole
-
PHP Doesn't Suck Anymore
They fixed that limitation with Swoole and other Fiber based frameworks.
https://openswoole.com/
- Open Swoole: PHP Server with Async IO, Coroutines and Fibers
- Open Swoole – Programmatic server for PHP with async IO, coroutines and fibers
-
[Blog] Unlocking the power of asynchronous PHP 💪
One such promising solution is Swoole, a high-performance networking framework that helps PHP applications handle server-side tasks more effectively.
-
Go with PHP (why it's still a good idea to use PHP in 2023)
its a PHP extension that gives PHP superpowers: https://github.com/swoole/swoole-src https://openswoole.com/
-
Using PHP as a multiplayer FPS game engine with clients renderer using WebGL
interesting project, will check it out, at a first look, I believe this project would benefit from OpenSwoole (https://openswoole.com/), as it greatly increases PHP app performance.
-
Moving from Java to PHP Project
Unless you mean Asynchronous code? Yeah, there's something for that too
-
Open Swoole 22.0.0 released
The good thing about it is all documentation is in english at https://openswoole.com
-
PHP parallel processing idea
You probably want to look into https://openswoole.com
-
Is it possible that PHP will ever get async/await functions?
These can be performed concurrently in PHP with Swoole https://openswoole.com/
What are some alternatives?
parallel - An advanced parallelization library for PHP, enabling efficient multitasking, optimizing resource use, and application responsiveness through multiple CPU threads.
Deployer - The PHP deployment tool with support for popular frameworks out of the box
async - Easily run code asynchronously
Swoole - 🚀 Coroutine-based concurrency library for PHP
React - Event-driven, non-blocking I/O with PHP.
Slim - Slim Framework 4 Skeleton Application
asynchronous-php - List of resources for asynchronous programming in PHP
Laradock - Full PHP development environment for Docker.
promises - Promises/A+ library for PHP with synchronous support
framework-x - Framework X – the simple and fast micro framework for building reactive web applications that run anywhere.
HHVM - A virtual machine for executing programs written in Hack.