The modern PHP app server, written in Go
open sourceMITself-hostablefree
FrankenPHP is a modern application server for PHP built on the Caddy web server: it embeds the official PHP executor through its own SAPI, so one binary serves a PHP app without PHP-FPM or another web server, with HTTP/1.1, HTTP/2 and HTTP/3, automatic HTTPS certificates from Let's Encrypt or ZeroSSL, compression and every Caddy module. Its worker mode boots the app once and keeps it in memory, with official integrations in Laravel, Symfony and API Platform; it also supports 103 Early Hints, a built-in Mercure hub for real-time events, hot reloading and a watcher that restarts workers when code changes. It can package a PHP app as a standalone self-executable binary, runs in Docker and Kubernetes, works with PHP 8.2+ and most extensions, and can be embedded in Go apps as a library. It lives in the PHP organization on GitHub and is MIT licensed.
Problems it solves
- run a PHP app in production without configuring nginx and PHP-FPM
- make my Laravel or Symfony app faster by keeping it booted in memory between requests
- serve PHP over HTTP/3 with automatic HTTPS certificates
- ship my PHP application as a single self-contained binary
- push real-time updates from PHP to browsers
- run a PHP app in a single Docker container with one process
- embed PHP in a Go application
Features
- built on Caddy with the official PHP executor
- HTTP/1.1, HTTP/2 and HTTP/3
- automatic HTTPS (Let's Encrypt or ZeroSSL)
- worker mode with Laravel, Symfony and API Platform integrations
- 103 Early Hints
- built-in Mercure hub for real-time events
- hot reloading and a file watcher that restarts workers
- standalone self-executable binaries of PHP apps
- Docker images; Kubernetes compatible
- PHP 8.2+, most PHP extensions including OPcache and Xdebug, and all Caddy modules
View 1 more
- embeddable in Go apps through net/http
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Takes plugins | plan not known |
Alternatives
The same job
These do what FrankenPHP does.