Go to file
2024-03-13 21:59:40 +01:00
.github ci: prevent some useless runs when only docs are updated 2024-03-13 21:59:40 +01:00
C-Thread-Pool chore: switch to upstream C-Thread-Pool 2023-12-18 18:50:50 +01:00
caddy chore: bump deps 2024-03-12 22:20:16 +01:00
docs Update compile.md 2024-03-10 23:08:53 +01:00
internal refactor: faster $_SERVER variables creation 2023-11-16 14:40:52 +01:00
testdata fix: prevent crash when calling apache_request_headers() in non-HTTP context 2024-02-27 17:51:10 +01: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 feat: compress binary in Alpine with UPX 2024-02-20 19:38:03 +01: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 ci: prevent failures when using custom libs for static binaries (#642) 2024-03-11 16:37:58 +01:00
cgi.go perf: reduce allocs when creating $_SERVER (#540) 2024-03-12 18:31:30 +01:00
CONTRIBUTING.md ci: build static binary with debug symbols 2024-03-09 00:33:11 +01:00
dev-alpine.Dockerfile feat: compile with Go 1.22 (#568) 2024-02-12 10:00:46 +01:00
dev.Dockerfile feat: compile with Go 1.22 (#568) 2024-02-12 10:00:46 +01:00
docker-bake.hcl feat: compile with Go 1.22 (#568) 2024-02-12 10:00:46 +01:00
Dockerfile feat: add Brotli compression support (#524) 2024-01-30 18:33:59 +01:00
embed.go fix: do not extract embedded app on every execution (#488) 2024-01-21 18:13:08 +01:00
frankenphp_arginfo.h feat: add apache_response_headers() function (#530) 2024-01-31 12:34:30 +01:00
frankenphp_test.go perf: reduce allocs when creating $_SERVER (#540) 2024-03-12 18:31:30 +01:00
frankenphp.c perf: hint the number of threads to TSRM (#655) 2024-03-13 18:28:07 +01:00
frankenphp.go chore: some CS changes 2024-03-12 22:20:04 +01: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 feat: add apache_response_headers() function (#530) 2024-01-31 12:34:30 +01:00
go.mod chore: bump deps 2024-03-12 22:20:16 +01:00
go.sum chore: bump deps 2024-03-12 22:20:16 +01: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: add FR translations and various EN improvements (#589) 2024-02-27 17:21:48 +01: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 perf: reduce allocs when creating $_SERVER (#540) 2024-03-12 18:31:30 +01:00
smartpointer.go Fix memory leak (#442) 2023-12-28 00:16:19 +01:00
static-builder.Dockerfile ci: build static binary with debug symbols 2024-03-09 00:33:11 +01:00
worker_test.go perf: reduce allocs when creating $_SERVER (#540) 2024-03-12 18:31:30 +01:00
worker.go perf: reduce allocs when creating $_SERVER (#540) 2024-03-12 18:31:30 +01: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 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