Top 21 PHP Async Projects
Asynchronous WebSocket server (by ratchetphp)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.
A non-blocking concurrency framework for PHP applications. 🐘Project mention: Monthly "Post your Project" thread | reddit.com/r/PHP | 2021-12-06
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!
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.
LaravelS is an out-of-the-box adapter between Laravel/Lumen and Swoole.
Easily run code asynchronously (by spatie)Project mention: I Avoid Async/Await | news.ycombinator.com | 2022-04-16
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)
Async PHP client/server API for the telegram MTProto protocol
Yii2 Queue Extension. Supports DB, Redis, RabbitMQ, Beanstalk and GearmanProject 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?
📚 PHP Standard Library - a modern, consistent, centralized, well-typed, non-blocking set of APIs for PHP programmers - #StandWithUkraine 🇺🇦Project mention: Whats New in PHP 8.2 | news.ycombinator.com | 2022-04-25
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.
Asynchronous coroutines for PHP 7. (by recoilphp)
Async HTTP/1.1+2 client for PHP based on Amp. (by amphp)Project mention: Trying to run multiple php scripts at once. | reddit.com/r/PHP | 2021-07-09
More specifically, you're probably looking for https://github.com/amphp/http-client.
A lightweight solution for running code concurrently in PHPProject 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.
Asynchronous WebSocket clientProject mention: Craft a Kraken API client with PHP8 (2/2) | dev.to | 2022-05-30
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.
Monitor for any changes in your php application and automatically restart it (suitable for async apps).Project mention: An improvement on the built-in server | reddit.com/r/PHP | 2021-11-01
Could you also use something like https://github.com/seregazhuk/php-watcher to implement livereload in PHP and remove npm dependency?
AWS SDK with readable code and async responses
A non-blocking stream abstraction for PHP based on Amp.
Async MySQL client for PHP based on Amp. (by amphp)Project mention: Is it possible to write a PDO driver in pure PHP? | reddit.com/r/PHP | 2022-05-05
Here's an example of a PHP-only driver that talks to MySQL: https://github.com/amphp/mysql/tree/master/src
Async Postgres client for PHP based on Amp. (by amphp)Project mention: Is it possible to write a PDO driver in pure PHP? | reddit.com/r/PHP | 2022-05-05
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.
Cooperative multitasking using generators. The basics of coroutines, async and await!
🐺 Asynchronous Task Queue Based on Distributed Message Passing for PHP.Project mention: Clivern/Chunk - Asynchronous Task Queue Based on Distributed Message Passing for PHP. | reddit.com/r/PHP | 2021-08-17
PHPUnit assertions for testing ReactPHP promises
Minimal hello world Symfony application built with Swoole and Docker
Starter template for catpaw-core using a Svelte stateful SPAProject mention: Svelte & Amphp | reddit.com/r/sveltejs | 2022-06-21
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
Craft a Kraken API client with PHP8 (2/2)
2 projects | dev.to | 30 May 2022
Is it possible to write a PDO driver in pure PHP?
4 projects | reddit.com/r/PHP | 5 May 2022
10 projects | news.ycombinator.com | 27 Mar 2022
Slow external API calls made in a foreach - How to optimize?
2 projects | reddit.com/r/laravel | 1 Mar 2022
What third-party extension or library would you like to see included in php as default?
6 projects | reddit.com/r/PHP | 20 Jan 2022
PHP in 2022
2 projects | news.ycombinator.com | 11 Jan 2022
PHP 8.1.0 Release Announcement
9 projects | news.ycombinator.com | 25 Nov 2021
What are some of the best open-source Async projects in PHP? This list will help you:
|19||ReactPHP Promises Testing||29|
Are you hiring? Post a new remote job listing for free.