Go to file
2024-07-25 12:47:17 +02:00
.github Try gotip 2024-07-25 12:45:48 +02:00
caddy chore: prepare release 1.2.2 2024-07-11 14:09:52 +02:00
docs docs: fix port number in French version (#919) 2024-07-12 10:55:21 +02:00
internal refactor: faster $_SERVER variables creation 2023-11-16 14:40:52 +01:00
testdata Fix #46 2024-07-25 12:45:23 +02:00
.dockerignore fix: do not extract embedded app on every execution (#488) 2024-01-21 18:13:08 +01:00
.gitignore ci: add Apple Silicon build script (#313) 2023-11-19 17:06:18 +01:00
.hadolint.yaml ci: add Super-Linter (#323) 2023-12-01 17:26:21 +01:00
.markdown-lint.yaml ci: add Super-Linter (#323) 2023-12-01 17:26:21 +01:00
alpine.Dockerfile try CL 600296 2024-07-25 12:47:17 +02:00
app_checksum.txt fix: do not extract embedded app on every execution (#488) 2024-01-21 18:13:08 +01:00
app.tar feat: use tar to embed apps (#333) 2023-12-03 19:17:36 +01:00
build-static.sh chore: switch back to upstream Static PHP CLI 2024-07-05 11:12:34 +02:00
cgi.go perf: reduce allocs when creating $_SERVER (#540) 2024-03-12 18:31:30 +01:00
CONTRIBUTING.md perf: improve PHP thread management (#898) 2024-07-09 09:39:03 +02:00
dev-alpine.Dockerfile fix: deprecated Dockerfile ENV syntax 2024-07-05 11:34:47 +02:00
dev.Dockerfile fix: deprecated Dockerfile ENV syntax 2024-07-05 11:34:47 +02:00
docker-bake.hcl fix: create a custom Go build when using musl to prevent a crash (#913) 2024-07-11 10:26:28 +02:00
Dockerfile Try gotip 2024-07-25 12:45:48 +02:00
embed.go fix: temporary directory name for embed apps 2024-04-28 10:45:38 +02:00
frankenphp_arginfo.h fix: getallheaders() must return request headers (#772) 2024-05-08 11:43:39 +02:00
frankenphp_test.go Fix #46 2024-07-25 12:45:23 +02:00
frankenphp.c perf: improve PHP thread management (#898) 2024-07-09 09:39:03 +02:00
frankenphp.go perf: improve PHP thread management (#898) 2024-07-09 09:39:03 +02:00
frankenphp.h perf: reduce allocs when creating $_SERVER (#540) 2024-03-12 18:31:30 +01:00
frankenphp.png docs: update logo 2022-10-14 12:23:39 +02:00
frankenphp.stub.php fix: getallheaders() must return request headers (#772) 2024-05-08 11:43:39 +02:00
go.mod chore: bump deps 2024-07-08 16:21:06 +02:00
go.sum chore: bump deps 2024-07-08 16:21:06 +02:00
LICENSE docs: add license (#24) 2022-10-15 11:21:21 +02:00
options.go perf: reduce allocs when creating $_SERVER (#540) 2024-03-12 18:31:30 +01:00
README.md docs: recommend FrankenWP for WordPress (#785) 2024-05-27 13:29:16 +02:00
recorder_test.go chore: improve tests and add missing file (#13) 2022-10-11 20:41:50 +02:00
release.sh ci: use Apple Silicon machines when useful (#550) 2024-02-04 18:25:04 +01:00
reload_test.sh fix: random crashes when reloading (#394) 2023-12-18 09:05:49 +01:00
request_options.go chore: fix function name in comment 2024-04-09 16:45:12 +02:00
smartpointer.go Fix memory leak (#442) 2023-12-28 00:16:19 +01:00
static-builder.Dockerfile fix: create a custom Go build when using musl to prevent a crash (#913) 2024-07-11 10:26:28 +02:00
worker_test.go fix(caddy): incorrectly prepared environment variables when not using Caddyfile 2024-06-24 17:36:06 +02:00
worker.go feat: log the number of threads and workers during startup 2024-05-30 11:15:30 +02:00

FrankenPHP: Modern App Server for PHP

FrankenPHP

FrankenPHP is a modern application server for PHP built on top of the Caddy web server.

FrankenPHP gives superpowers to your PHP apps thanks to its stunning features: Early Hints, worker mode, real-time capabilities, automatic HTTPS, HTTP/2, and HTTP/3 support...

FrankenPHP works with any PHP app and makes your Laravel and Symfony projects faster than ever thanks to their official integrations with the worker mode.

FrankenPHP can also be used as a standalone Go library to embed PHP in any app using net/http.

Learn more on frankenphp.dev and in this slide deck:

Slides

Getting Started

Docker

docker run -v $PWD:/app/public \
    -p 80:80 -p 443:443 -p 443:443/udp \
    dunglas/frankenphp

Go to https://localhost, and enjoy!

Tip

Do not attempt to use https://127.0.0.1. Use https://localhost and accept the self-signed certificate. Use the SERVER_NAME environment variable to change the domain to use.

Standalone Binary

If you prefer not to use Docker, we provide standalone FrankenPHP binaries for Linux and macOS containing PHP 8.3 and most popular PHP extensions: Download FrankenPHP

To serve the content of the current directory, run:

./frankenphp php-server

You can also run command-line scripts with:

./frankenphp php-cli /path/to/your/script.php

Docs

Examples and Skeletons