6
submitted 1 year ago by rikudou@lemmings.world to c/php@lemmy.world

A good article on implementing an event loop in PHP using the built-in fibers.

top 2 comments
sorted by: hot top controversial new old
[-] tsonfeir@lemm.ee 1 points 1 year ago

Does anyone use this? It’s doesn’t seem very efficient to use PHP for this kind of thing.

[-] rikudou@lemmings.world 1 points 1 year ago

What kind of thing do you mean? Async is used in PHP, though not many people roll out their own event loop, that article is more for people who want to know how it works. Previously generators were used for native async support, nowadays fibers.

this post was submitted on 05 Sep 2023
6 points (100.0% liked)

PHP

362 readers
1 users here now

<?

namespace lemmy\php;

/*

Welcome to the PHP community on Lemmy

#Rules:

1: Soon(TM)

#Helpful stuff:

PHP Documentation

Composer

PHP Standards

#Common frameworks:

Symfony

Larvel

*/

echo "Welcome";

founded 1 year ago
MODERATORS