Top 21 PHP Async Projects
-
Project mention: The benefits and pitfalls of using Laravel to make a persistent browser-based game | dev.to | 2022-04-13
You can do native websockets with PHP, but it's not straightforward with Laravel. Laravel Echo helps handle the client-side of websockets, but you need to manage the server side on your own.
-
We're working on Amp v3 making heavy use of fibers as shipped in PHP 8.1. We're releasing beta versions for each library currently, and we'd like to share our new amphp/pipeline library. If you're waiting for concurrent I/O without boilerplate, you can start testing now. We're happy about feedback on the new major releases!
-
Cloudways
Managed Cloud Hosting Platform. Cloudways leverages advanced technology and powerful servers. Cloudways is a one-click managed cloud hosting platform that provides cloud application and server management solutions.
-
-
It drove me crazy too, until I needed to use Puppeteer which requires you to write async/await (there are Puppeteer implementations in other languages, but they all seem to make compromises I didn't want). Generally speaking, async/await allows you to write code that looks and feels serial. Perhaps try using one of the async libraries for PHP to wrap your mind around the concept of async/await (like https://github.com/spatie/async)
-
-
Project mention: Is there a queue abstraction available for NestJS? | reddit.com/r/Nestjs_framework | 2022-04-13
There is a Bull queue wrapper described in the documentation which seems to be tightly coupled with Redis and as far as I know can not be used with any other queue. My use case for a queue abstraction is an open source platform which can be self hosted. For smaller installations e.g. personal use, you may not need or want to setup a real queue like Redis, but rather immediately execute jobs. Other installations may prefer other queue solutions e.g. a simple DB queue. An example of such an abstraction in PHP would be Yii2 Queue. If there is no abstraction available, any suggestions on how to bypass the bull queue by configuration if needed?
-
psl
📚 PHP Standard Library - a modern, consistent, centralized, well-typed, non-blocking set of APIs for PHP programmers - #StandWithUkraine 🇺🇦
-
JetBrains
Developer Ecosystem Survey 2022. Take part in the Developer Ecosystem Survey 2022 by JetBrains and get a chance to win a Macbook, a Nvidia graphics card, or other prizes. We’ll create an infographic full of stats, and you’ll get personalized results so you can compare yourself with other developers.
-
-
More specifically, you're probably looking for https://github.com/amphp/http-client.
-
Project mention: Slow external API calls made in a foreach - How to optimize? | reddit.com/r/laravel | 2022-03-01
The only way you could improve this is by using something like Spatie Fork to run the API requests in parallel but doing that is honestly going to be a headache.
-
This second part is not about how to build a WebSocket client, it just aim to cover Kraken WebSocket usage with PHP8 and the excellent Ratchet client library AKA Pawl.
-
PHP-watcher
Monitor for any changes in your php application and automatically restart it (suitable for async apps).
Could you also use something like https://github.com/seregazhuk/php-watcher to implement livereload in PHP and remove npm dependency?
-
-
-
Here's an example of a PHP-only driver that talks to MySQL: https://github.com/amphp/mysql/tree/master/src
-
As for writing SQL database adapters with an efficient API, look at https://github.com/amphp/postgres/tree/f52cc35ef02ee4ad709083e0432c2288d4df7de0 - it doesn't implement the PDO API, but it shows that performance can be achieved in userland, when the architectural paradigm is the right one for the job.
-
-
Project mention: Clivern/Chunk - Asynchronous Task Queue Based on Distributed Message Passing for PHP. | reddit.com/r/PHP | 2021-08-17
-
-
-
The starter template is pretty opinionated, it's using Vite, svelte-routing to manage routes and a custom StatefulRoute component that's actually responsible for syncing the state through http (and maybe WS and WebMQTT in the future).
PHP Async related posts
Index
What are some of the best open-source Async projects in PHP? This list will help you:
Project | Stars | |
---|---|---|
1 | Ratchet | 5,743 |
2 | Amp | 3,621 |
3 | LaravelS | 3,595 |
4 | async | 2,112 |
5 | MadelineProto | 1,991 |
6 | yii2-queue | 1,018 |
7 | psl | 869 |
8 | Recoil | 783 |
9 | http-client | 613 |
10 | fork | 535 |
11 | Pawl | 510 |
12 | PHP-watcher | 358 |
13 | AsyncAWS | 348 |
14 | ByteStream | 292 |
15 | mysql | 276 |
16 | postgres | 64 |
17 | coroutine | 51 |
18 | Chunk | 35 |
19 | ReactPHP Promises Testing | 29 |
20 | swoole-bundle-symfony-demo | 11 |
21 | catpaw-svelte-starter | 0 |
Are you hiring? Post a new remote job listing for free.