promises
promise
promises | promise | |
---|---|---|
4 | 1 | |
7,546 | 2,332 | |
0.2% | 0.5% | |
5.2 | 5.2 | |
about 1 month ago | about 2 months ago | |
PHP | PHP | |
MIT License | MIT License |
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.
promises
-
What next after PHP 8.3?
Coincidentally, they come in handy for stuff usually when using Guzzle:https://github.com/guzzle/promises
- Is it possible that PHP will ever get async/await functions?
-
How does guzzle handle async requests?
I think that's the old way.... Guzzle nowadays have promises support https://github.com/guzzle/promises
promise
-
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?
FutureKit - A Swift based Future/Promises Library for IOS and OS X.
socket - Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP.
PromiseKit - Promises for Swift & ObjC.
parallel - An advanced parallelization library for PHP, enabling efficient multitasking, optimizing resource use, and application responsiveness through multiple CPU threads.
async - Async utilities and fibers for ReactPHP.
Bolts-Swift - Bolts is a collection of low-level libraries designed to make developing mobile apps easier.
Bolts - Bolts is a collection of low-level libraries designed to make developing mobile apps easier.
TopicEventBus - Publish–subscribe design pattern implementation framework, with an ability to publish events by topic.
php-src - The PHP Interpreter
then🎬 - :clapper: Tame async code with battle-tested promises
Hydra - ⚡️ Lightweight full-featured Promises, Async & Await Library in Swift