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

Kévin Dunglas 22d4214529 feat: improve Docker images (#208) 1 год назад
.circleci b7098f7408 feat: Apple Silicon static build and better version name (#205) 1 год назад
.github 22d4214529 feat: improve Docker images (#208) 1 год назад
C-Thread-Pool e514823faa fix: use SA_ONSTACK in C-Thread-Pool 2 лет назад
caddy 22d4214529 feat: improve Docker images (#208) 1 год назад
docs 1f3007337d feat: create a static build of FrankenPHP (#198) 1 год назад
internal d61c96a4c3 feat: use Zap for logging 2 лет назад
testdata ab0783519e perf: reduce the number of calls to cgo to set the headers 1 год назад
.dockerignore 70110dcc77 ci: Docker images for various PHP versions 1 год назад
.gitignore 13fb0beae9 fix: remove some more memory leaks in worker mode (#65) 2 лет назад
CONTRIBUTING.md 70110dcc77 ci: Docker images for various PHP versions 1 год назад
Dockerfile 22d4214529 feat: improve Docker images (#208) 1 год назад
LICENSE f8bdd640cf docs: add license (#24) 2 лет назад
README.md 354021e7cc test: better debug flags (#160) 1 год назад
alpine.Dockerfile 22d4214529 feat: improve Docker images (#208) 1 год назад
cgi.go 91f6620151 fix: ensure SERVER_PORT is always set 1 год назад
dev.Dockerfile 70110dcc77 ci: Docker images for various PHP versions 1 год назад
docker-bake.hcl 22d4214529 feat: improve Docker images (#208) 1 год назад
frankenphp.c f5b599bc2b fix: superfluous response.WriteHeader call 1 год назад
frankenphp.go 1f3007337d feat: create a static build of FrankenPHP (#198) 1 год назад
frankenphp.h d284deab9d fix: frankenphp_update_server_context declaration 1 год назад
frankenphp.png 625ab8906f docs: update logo 2 лет назад
frankenphp.stub.php 9ef3bd7c47 feat: add fastcgi_finish_request() support (#69) 2 лет назад
frankenphp_arginfo.h 9ef3bd7c47 feat: add fastcgi_finish_request() support (#69) 2 лет назад
frankenphp_test.go ab0783519e perf: reduce the number of calls to cgo to set the headers 1 год назад
go.mod 3cc9650632 chore: use Caddy 2.7 1 год назад
go.sum 3cc9650632 chore: use Caddy 2.7 1 год назад
options.go b719e1cbea docs: improve docs of the Go module (#25) 2 лет назад
recorder_test.go 5012ac30cd chore: improve tests and add missing file (#13) 2 лет назад
static-builder.Dockerfile b7098f7408 feat: Apple Silicon static build and better version name (#205) 1 год назад
worker.go 8149f191e0 chore: clean multiple errors handling 1 год назад
worker_test.go 75cd310292 feat: add support for PHP timeouts on Linux (#128) 2 лет назад

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 Symfony projects faster than ever thanks to provided integration with the worker mode (Laravel Octane support coming).

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

☢️ FrankenPHP is very experimental, don't use it in production yet, file bugs and write patches! ☢️

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

Go to https://localhost, and enjoy!

Note: do not attempt to use https://127.0.0.1. Use localhost and accept the self-signed certificate. Caddy has an automatic TLS handling that auto-trusts some local-based hostnames like localhost, but it does not apply to IP addresses. More details on Caddy's "automatic https" docs.

Docs

Examples and Skeletons