News for hackers. Stuff that matters.
Re:PHP-Tokio – Use any async Rust library from PHP by dtjohnnymonkey on Monday August 28, 2023 @09:03AM (#37293296)
I was playing with something like this a long time ago back when I was excited about NodeJS. I hooked up libuv to PHP and got https://github.com/dtjm/php-async which seemed to work in simple experiments.
Re:PHP-Tokio – Use any async Rust library from PHP by danogentili on Monday August 28, 2023 @09:19AM (#37293503)
https://revolt.run / https://amphp.org does basically what you did, except with also a bunch of nicely designed async libraries for HTTP/MySQL/Postgres/etc, stackful coroutines (like goroutines) with fibers and integration not only with libuv, but also with libev, or with plain stream_select.

php-tokio plugs into revolt, which in turn allows it to coexist with any async library based on or compatible with revolt (i.e. the entire amp ecosystem, PSL, reactphp, etc...).