# Docker
docker run -v $PWD:/app/public -p 443:443 \
dunglas/frankenphp
# Static binary
./frankenphp php-server
# Command-line script
./frankenphp php-cli /path/to/your/script.php
Boot your app once, it stays in memory!
Natively supported by Symfony, API Platform, Laravel…
Uses plain old superglobals: no need for PSR-7.
According to our benchmarks, 3.5x faster than FPM on API Platform apps.
FrankenPHP is written in Go and C. It relies on Go’s iconic feature: goroutines!
Your app can be served as-is, even if it isn’t compatible with the worker mode.
Runs in process: one binary, no external service needed.
{
# Enable FrankenPHP
frankenphp
order php_server before file_server
}
localhost {
# Enable compression (optional)
encode zstd br gzip
# Execute PHP files in the current directory and serve assets
php_server
}