Go to file
2024-02-11 22:53:21 +01:00
.github ci: use Apple Silicon machines when useful (#550) 2024-02-04 18:25:04 +01:00
C-Thread-Pool chore: switch to upstream C-Thread-Pool 2023-12-18 18:50:50 +01:00
caddy chore: prepare release 1.1.0 2024-02-03 12:32:48 +01:00
docs docs: fix rootless Docker example (#565) 2024-02-11 11:33:08 +01:00
internal refactor: faster $_SERVER variables creation 2023-11-16 14:40:52 +01:00
testdata ci: add more headers to the k6 load test (#544) 2024-02-03 12:25:35 +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: add Brotli compression support (#524) 2024-01-30 18:33:59 +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: fix the Mac build (#569) 2024-02-11 22:53:21 +01:00
cgi.go refactor: faster $_SERVER variables creation 2023-11-16 14:40:52 +01:00
CONTRIBUTING.md docs: improve HTTPS documentation (#480) 2024-01-20 11:49:16 +01:00
dev-alpine.Dockerfile feat: add Brotli compression support (#524) 2024-01-30 18:33:59 +01:00
dev.Dockerfile feat: add Brotli compression support (#524) 2024-01-30 18:33:59 +01:00
docker-bake.hcl ci: build Linux aarch64 binaries (#432) 2023-12-24 11:35:59 +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: add $_SERVER creation benchmark 2024-02-01 11:40:36 +01:00
frankenphp.c feat: automatically import environment variables in $_SERVER 2024-02-03 12:25:18 +01:00
frankenphp.go fix: crash when using apache_request_headers() (#536) 2024-02-01 10:00:11 +01:00
frankenphp.h feat: add go_apache_request_headers() 2024-01-23 23:14:24 +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 github.com/stretchr/testify from 1.8.1 to 1.8.4 2023-12-13 00:45:24 +01:00
go.sum chore: bump github.com/stretchr/testify from 1.8.1 to 1.8.4 2023-12-13 00:45:24 +01:00
LICENSE docs: add license (#24) 2022-10-15 11:21:21 +02:00
options.go feat: allow passing env vars to workers (#210) 2023-09-15 12:59:43 +02:00
README.md feat: enable resolve_root_symlink by default (#546) 2024-02-02 15:58:33 +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 refactor: faster $_SERVER variables creation 2023-11-16 14:40:52 +01:00
smartpointer.go Fix memory leak (#442) 2023-12-28 00:16:19 +01:00
static-builder.Dockerfile docs: use tabs instead of spaces in Dockerfiles 2024-01-29 17:17:34 +01:00
worker_test.go refactor: faster $_SERVER variables creation 2023-11-16 14:40:52 +01:00
worker.go Ensure we don't modify a shared env (#452) 2023-12-31 20:02:11 +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 Symfony and Laravel projects faster than ever thanks to the provided integration 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