this post was submitted on 13 Jun 2023
2 points (100.0% liked)
PHP
368 readers
1 users here now
<?
namespace lemmy\php;
/*
Welcome to the PHP community on Lemmy
#Rules:
1: Soon(TM)
#Helpful stuff:
#Common frameworks:
*/
echo "Welcome";
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You can really get a huge performance gain (+10x) with Swoole or any other event loop. The problem is that they require a different approach in your code and you cannot easily rely on 3rd party libraries anymore. You need to make sure that your app does not have memory leak, and can handle concurrent requests.
If I were to create a new app in PHP, I would definitely consider ReactPHP, Swoole, OpenSwoole, Roadrunner or the latest player FrankenPHP.