News for hackers. Stuff that matters.
Re:PHP is worth learning and using by yegle on Thursday November 18, 2021 @12:25AM (#29262233)
For me the main turndown of using PHP is when I need to host the PHP website, php-fpm and Apache+mod_php seem to be the only two options. (FastCGI doesn't even have a proper specification).
Re:PHP is worth learning and using by azophy_2 on Thursday November 18, 2021 @12:44AM (#29262330)
swoole is a pretty interesting alternative as it allows asynchronous programming in PHP.

roadrunner is a PHP server developed using golang, utilizing goroutines for high performance.

both used by Laravel Octane, providing very easy integration with the framework.

Other than that, php-fpm & FastCGI allows integration with many interestin webserver including Nginx, Caddy, Lighttpd, etc.

Re:PHP is worth learning and using by lessname on Thursday November 18, 2021 @06:48AM (#29264411)
I would be a little bit careful while using swoole. They added some code that loaded code from a third party server [1] (a core developer who seems to be located in china). Even though it seems like they removed it doesn't bring a good feeling. It seems like there were also some disagreements with a contributor who maintained the website of swoole and he forked it [2]: https://github.com/openswoole/swoole-src

[1] https://github.com/swoole/swoole-src/issues/4434 [2] https://news-web.php.net/php.pecl.dev/17446

Re:PHP is worth learning and using by yegle on Thursday November 18, 2021 @04:08AM (#29263562)
Roadrunner looks cool, thanks for the recommendation!
Re:PHP is worth learning and using by fogihujy on Thursday November 18, 2021 @01:35AM (#29262633)
Litespeed, or Apache+mod_lsapi are excellent alternatives.

If self-hosting, Nginx and FPM is well-tested and very fast.