# Install FrankenPHP on Linux or macOScurl https://frankenphp.dev/install.sh | sh
# Or on Windows, with PowerShellirm https://frankenphp.dev/install.ps1 | iex
# Serve the public/ directoryfrankenphp php-server -r public/
# Run a command-line scriptfrankenphp php-cli 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.
Automatically restart workers each time your code changes.
localhost{ # Enable compression (optional)
encodezstdbrgzip # Execute PHP files in the current directory and serve assets
php_server}