The modern PHP app server https://frankenphp.dev/

Robert Landers fd14a486c3 fix leak 3 месяцев назад
.github 3ca52f5934 ci: generate SLSA attestations for static binaries 3 месяцев назад
caddy 26cfcc145a chore: prepare release 1.2.3 3 месяцев назад
docs 93859e3149 docs: fix assorted typos (#942) 3 месяцев назад
internal aa1d968dcf refactor: faster $_SERVER variables creation 1 год назад
testdata e45a788824 fix(caddy): incorrectly prepared environment variables when not using Caddyfile 5 месяцев назад
.dockerignore 6f108a4203 fix: do not extract embedded app on every execution (#488) 10 месяцев назад
.gitignore 2e72b50d10 ci: add Apple Silicon build script (#313) 1 год назад
.hadolint.yaml c9bf9940d1 ci: add Super-Linter (#323) 11 месяцев назад
.markdown-lint.yaml c9bf9940d1 ci: add Super-Linter (#323) 11 месяцев назад
CONTRIBUTING.md 0500ebc191 perf: improve PHP thread management (#898) 4 месяцев назад
Dockerfile 968176a948 ci: run tests with ASAN and MSAN (#955) 3 месяцев назад
LICENSE f8bdd640cf docs: add license (#24) 2 лет назад
README.md da342b6f2f docs: recommend FrankenWP for WordPress (#785) 5 месяцев назад
alpine.Dockerfile 968176a948 ci: run tests with ASAN and MSAN (#955) 3 месяцев назад
app.tar 537f899939 feat: use tar to embed apps (#333) 11 месяцев назад
app_checksum.txt 6f108a4203 fix: do not extract embedded app on every execution (#488) 10 месяцев назад
build-static.sh 968176a948 ci: run tests with ASAN and MSAN (#955) 3 месяцев назад
cgi.go 07a74e5c5a perf: reduce allocs when creating $_SERVER (#540) 8 месяцев назад
dev-alpine.Dockerfile 6c708be99d ci: upgrade to super-linter 6 (#952) 3 месяцев назад
dev.Dockerfile 6c708be99d ci: upgrade to super-linter 6 (#952) 3 месяцев назад
docker-bake.hcl 0751f453b9 fix: create a custom Go build when using musl to prevent a crash (#913) 4 месяцев назад
embed.go 25a858954c fix: temporary directory name for embed apps 6 месяцев назад
frankenphp.c fb23c64632 perf: cgi-mode 1700% improvement (#933) 3 месяцев назад
frankenphp.go fd14a486c3 fix leak 3 месяцев назад
frankenphp.h 07a74e5c5a perf: reduce allocs when creating $_SERVER (#540) 8 месяцев назад
frankenphp.png 625ab8906f docs: update logo 2 лет назад
frankenphp.stub.php ea5e19ff4b fix: getallheaders() must return request headers (#772) 6 месяцев назад
frankenphp_arginfo.h ea5e19ff4b fix: getallheaders() must return request headers (#772) 6 месяцев назад
frankenphp_test.go 4537f27f67 fix: prevent crash when worker terminates after a file upload 5 месяцев назад
go.mod b87cf4e8b9 chore: bump deps 4 месяцев назад
go.sum b87cf4e8b9 chore: bump deps 4 месяцев назад
handles.go d3e3165fe9 change documentation 3 месяцев назад
handles_test.go d3e3165fe9 change documentation 3 месяцев назад
options.go 07a74e5c5a perf: reduce allocs when creating $_SERVER (#540) 8 месяцев назад
recorder_test.go 5012ac30cd chore: improve tests and add missing file (#13) 2 лет назад
release.sh 6c708be99d ci: upgrade to super-linter 6 (#952) 3 месяцев назад
reload_test.sh 6c708be99d ci: upgrade to super-linter 6 (#952) 3 месяцев назад
request_options.go 15a600cdaa chore: fix function name in comment 7 месяцев назад
static-builder.Dockerfile 6c708be99d ci: upgrade to super-linter 6 (#952) 3 месяцев назад
worker.go d3e3165fe9 change documentation 3 месяцев назад
worker_test.go e45a788824 fix(caddy): incorrectly prepared environment variables when not using Caddyfile 5 месяцев назад

README.md

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