Best PHP PDF Libraries Compared: Dompdf, mPDF, TCPDF and More
Sooner or later most PHP projects need to produce a PDF: an invoice, a report, a ticket or a contract. There are several mature open-source libraries for…
FrankenPHP has been getting a lot of attention in the PHP world, so I want to give a short, practical overview of what it is and why it might matter if you run PHP applications on your own server.
FrankenPHP is an application server for PHP. It is built on top of the Caddy web server and embeds PHP directly, so you don't need a separate PHP-FPM process behind a web server like Nginx or Apache. One binary serves your PHP application.
Worker mode changes how your code lives in memory. Because the application stays loaded between requests, code that relies on global state or static variables being reset for each request can behave differently. Classic request-per-process mode avoids that, so you can start there and try worker mode once you're confident your code handles it.
As with any change to your server stack, test it on a staging setup before switching production over.
If you manage your own server and like the idea of fewer moving parts, FrankenPHP is worth a look. If your current PHP-FPM setup works well and you have no performance problems, there is no rush. It's a good option to know about, not something you have to adopt today.
Sooner or later most PHP projects need to produce a PDF: an invoice, a report, a ticket or a contract. There are several mature open-source libraries for…
No comments yet