Hacker News new | past | comments | ask | show | jobs | submit login

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



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.


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


Roadrunner looks cool, thanks for the recommendation!


Litespeed, or Apache+mod_lsapi are excellent alternatives.

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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: