Kritim Yantra
Jun 26, 2025
🚀 Introduction: Why Is Everyone Talking About FrankenPHP?
If you've been in the PHP world lately, you’ve probably heard whispers about something called FrankenPHP. 🧟♂️
No, it’s not a monster — but it does revive PHP in a powerful way!
In simple terms, FrankenPHP is a modern PHP app server that blends the best of PHP and modern web technology, giving developers more speed, flexibility, and simplicity.
In this post, we’ll explain what FrankenPHP is, why it matters, and how to get started — even if you’re new to servers and DevOps.
(Image source: FrankenPHP official site)
FrankenPHP is a high-performance PHP application server written in Go by the creators of Caddy Web Server. It can run your PHP applications like Laravel, Symfony, or WordPress — without needing Nginx, Apache, or PHP-FPM.
🧾 Think of FrankenPHP as a lightweight super-server: it runs PHP natively, serves static files, handles HTTPS, and can even run background tasks — all in one binary!
Here’s why developers are loving it:
You can download the latest binary from:
👉 https://frankenphp.dev/docs/install/
On Linux or macOS:
curl -fsSL https://get.frankenphp.dev | sh
Make it executable:
chmod +x frankenphp
./frankenphp version
Here’s a super simple Dockerfile to run a Laravel app:
FROM dunglas/frankenphp
COPY . /app
WORKDIR /app
RUN composer install --no-dev --optimize-autoloader
CMD ["frankenphp", "--config", "/app/frankenphp.yaml"]
frankenphp.yaml
app:
script: public/index.php
workers: 4
preload: true
This tells FrankenPHP how to handle your app: which script to run, how many workers, etc.
Let’s say you want to deploy a Laravel app without setting up Nginx + PHP-FPM + SSL. With FrankenPHP:
You build your Laravel app.
You dockerize it using dunglas/frankenphp
.
FrankenPHP handles:
You get a simpler deployment, fewer moving parts, and faster performance.
Feature | Nginx + PHP-FPM | FrankenPHP |
---|---|---|
Setup Complexity | Moderate to High ⚠️ | Very Low ✅ |
HTTPS Support | Manual (Let's Encrypt) | Built-in via Caddy 🔒 |
PHP Performance | Good | Great ⚡ |
Docker Friendly | Medium | Very High 🐳 |
Background Jobs | External (Queue Worker) | Built-in Thread Support 🧵 |
FrankenPHP comes with:
✅ Yes, if you are:
🚫 Maybe not, if:
No comments yet. Be the first to comment!
Please log in to post a comment:
Sign in with Google