title: "FrankenPHP: the modern PHP app server"
source: https://frankenphp.dev/
author:
- "[[@dunglas]]"
published:
created: 2025-09-06
description: FrankenPHP is a new app server for PHP apps (built on top of Caddy) and a library to embed the PHP interpreter in Go web servers.
tags:
- Computer/Code
# Install FrankenPHP
curl https://frankenphp.dev/install.sh | sh
mv frankenphp /usr/local/bin/
# Serve the public/ directory
frankenphp php-server -r public/
# Run a command-line script
frankenphp php-cli script.php
One command to run them all
Make your PHP apps faster than ever!
Fast as lightning
localhost {
# Enable compression (optional)
encode zstd br gzip
# Execute PHP files in the current directory and serve assets
php_server
}
Features
Compatible with PHP 8.2+, most PHP extensions and all Caddy modules.
Designed with simplicity in mind: only one service, only one binary! FrankenPHP doesn’t need PHP-FPM, it uses its own SAPI specially handcrafted for Go web servers.
Cloud Native app shipped as a Docker image. Compatible with Kubernetes, and all modern cloud platforms. It’s also possible to package your PHP app as a standalone, self-executable static binary.
Boot your application once and keep it in memory! It is ready to handle incoming requests in a few milliseconds.
Early Hints are a brand new feature of the web platform that can improve website load times by 30%. FrankenPHP is the only PHP SAPI with Early Hints support!
Built-in Mercure hub. Send events from your PHP apps to all connected browsers, they instantly receive the payload as a JavaScript event!
Modern compression formats are supported out-of-the-box.
Bring a more defined format and details to your logging.
Built-in Prometheus support!
Native support for HTTPS, HTTP/2 and HTTP/3.
Automatic HTTPS certificate generation, renewal and revocation.
Deploy your apps with zero downtime thanks to graceful reloads.