Filter
Exclude
Time range
-
Near
#TrueAsync is an experimental library bringing true asynchronous programming to #PHP — coroutines, async/await, and non-blocking I/O built into the language core. Write high-performance concurrent applications with clean, readable code and minimal changes. #opensource #devtools 🌀 Lightweight coroutines for efficient concurrent execution. No colored async functions — just call spawn() and go. 🔌 Non-blocking I/O for regular #PHP functions. fread, fwrite, file_get_contents, ob_start, curl, #MySQL, and #PostgreSQL now work asynchronously without extra effort. 🖥️ Built-in TrueAsync Server: a native HTTP/1.1, HTTP/2, and HTTP/3 web server written in C, running directly inside the #PHP process. 🛑 Cooperative cancellation with a simple, flexible API for coroutine cancellation via Scope::cancel(). 📦 Structured concurrency — control coroutine lifetime with the Scope sandbox and manage groups of coroutines via TaskGroup. 🗄️ PDO Pool: connection pooling built right into PDO with automatic connection management for maximum performance. 🔄 Channels & ThreadPool for data exchange between coroutines. Buffered and unbuffered channels for producer/consumer patterns, cross-thread via ThreadChannel, and parallel CPU tasks via Thread and ThreadPool. 🎯 Futures deliver deferred results for async computations, with composition via await_all and await_first. Context associates data with a coroutine for easy adaptation of global-variable code. 🗓️ Roadmap: Complete Async API (v0.6) shipped March 2026, with Threads & Stabilization in Summer 2026, Framework Adapters in Q3 2026, and a stable v1.0 release targeted for November 2026 on PHP 8.6. 🌐 true-async.github.io/en/ If you use #Laravel, check this out: github.com/YanGusik/thrun_la…
2
1
10
541
Replying to @joeyboli @NMoses_
If a new RFC for PHP TrueAsync passes at the end of the year, PHP will become more natively async than pure JavaScript still is.
1
1
29
Replying to @joeyboli @NMoses_
Node.js isn’t a language. PHP has similar options in its ecosystem: Swoole, Amp, ReactPHP, RoadRunner, but unlike Node.js, they’re not the default runtime/environment. Hopefully, PHP TrueAsync will become part of the language and async will become native.
2
1
49
#php #async Meet a competitor to #Laravel #Horizon for background job processing. Compared to Thrun (github.com/YanGusik/thrun), a component built on top of TrueAsync and Redis with connection pooling (currently in beta). What surprised me the most is the huge difference in memory usage. In addition, Thrun provides a modest performance boost. And if your jobs perform a lot of I/O operations, they can also be executed concurrently using coroutines.
1
2
22
1,089
PHP is natively top-to-bottom with blocking I/O; so you would obviously not rely on fpm for a high concurrency system, but spin up multiple workers using swoole or any other alternatives. Anyway PHP community already has TrueAsync implementations and it’ll soon be added to php core.
1
1
37
#php #async I’ve been using #channels in TrueAsync for more than three months, and I hate #deadlocks! How do Go programmers live with this?
1
8
301
The TrueAsync server architecture is based on the principle: processing a request within a single thread. This approach is commonly called “One Request – One Thread” (or sometimes “Thread-per-request”). This approach makes it possible to build highly performant APIs, including real-time APIs. #php #async Stay tuned!
7
220
Laravel Spawn is an async runtime for Laravel powered by PHP TrueAsync. laravel-news.com/link/17579

1
1
5
466
I've long dreamed of a clean API for working with #PHP #threads #asynchronously. Yesterday a major PR landed in TrueAsync. Native spawn_thread() support with full #async integration. Now you can run CPU-bound tasks in isolated OS threads without blocking your coroutines, pass data between threads safely, and reuse workers via #ThreadPool. True parallel PHP, no hacks. 🎉 true-async.github.io/en/docs… P.S. The feature will be publicly available in early summer after the release of version 0.7.0.
2
144
PHP の非同期処理対応を目指すTrueAsyncプロジェクトの公式ページができていた true-async.github.io/en/
2
63
tomorrow, 1pm utc ⦿ partial function application ⦿ pattern matching ⦿ frankenphp ⦿ mago ⦿ trueasync ⦿ phpverse ⦿ and more... subscribe: youtube.com/live/AX0sbjyV5EA…
2
4
47
8,815
20 Oct 2025
Replying to @AshAllenDesign
We need the trueAsync😆
1
3
234
TrueAsync RFC Update: Unfortunately didn't make it into PHP 8.5 core. Performance benchmarks show the current minimal-changes approach significantly underperforms compared to Swoole. Hoping this RFC continues to develop well! 🚀 #PHP #Async #TrueAsync reddit.com/r/PHP/comments/1n…
3
334