PHP Async

Open-source PHP projects categorized as Async Edit details

Top 21 PHP Async Projects

  • Ratchet

    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.

  • Amp

    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!

  • 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.

  • LaravelS

    LaravelS is an out-of-the-box adapter between Laravel/Lumen and Swoole.

  • async

    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)

  • MadelineProto

    Async PHP client/server API for the telegram MTProto protocol

  • yii2-queue

    Yii2 Queue Extension. Supports DB, Redis, RabbitMQ, Beanstalk and Gearman

    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 🇺🇦

    Project mention: Whats New in PHP 8.2 | news.ycombinator.com | 2022-04-25
  • 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.

  • Recoil

    Asynchronous coroutines for PHP 7. (by recoilphp)

  • http-client

    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.

  • fork

    A lightweight solution for running code concurrently in PHP

    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.

  • Pawl

    Asynchronous WebSocket client

    Project 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.

  • PHP-watcher

    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?

  • AsyncAWS

    AWS SDK with readable code and async responses

  • ByteStream

    A non-blocking stream abstraction for PHP based on Amp.

  • mysql

    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

  • postgres

    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.

  • coroutine

    Cooperative multitasking using generators. The basics of coroutines, async and await!

  • Chunk

    🐺 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
  • ReactPHP Promises Testing

    PHPUnit assertions for testing ReactPHP promises

  • swoole-bundle-symfony-demo

    Minimal hello world Symfony application built with Swoole and Docker

  • catpaw-svelte-starter

    Starter template for catpaw-core using a Svelte stateful SPA

    Project 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).

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-06-21.

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
Find remote jobs at our new job board 99remotejobs.com. There are 4 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.
www.sonarlint.org