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

Kévin Dunglas 123d167729 ci: release infrastructure (#213) 1 year ago
.circleci 123d167729 ci: release infrastructure (#213) 1 year ago
.github 123d167729 ci: release infrastructure (#213) 1 year ago
C-Thread-Pool e514823faa fix: use SA_ONSTACK in C-Thread-Pool 2 years ago
caddy 123d167729 ci: release infrastructure (#213) 1 year ago
docs 123d167729 ci: release infrastructure (#213) 1 year ago
internal d61c96a4c3 feat: use Zap for logging 2 years ago
testdata fb63099a88 feat: allow passing env vars to workers (#210) 1 year ago
.dockerignore 70110dcc77 ci: Docker images for various PHP versions 1 year ago
.gitignore 13fb0beae9 fix: remove some more memory leaks in worker mode (#65) 2 years ago
CONTRIBUTING.md 546dfbcbaf feat: upgrade to PHP 8.3RC2 1 year ago
Dockerfile c820b9750f chore: minor Dockerfile improvements 1 year ago
LICENSE f8bdd640cf docs: add license (#24) 2 years ago
README.md 123d167729 ci: release infrastructure (#213) 1 year ago
alpine.Dockerfile 09b2282441 feat: set SAPI version 1 year ago
cgi.go 48908f599d fix: ensure that SERVER_PORT is always defined 1 year ago
dev-alpine.Dockerfile 1766c1266e upgrade go version + add alpine dockerfile (#217) 1 year ago
dev.Dockerfile 1766c1266e upgrade go version + add alpine dockerfile (#217) 1 year ago
docker-bake.hcl 123d167729 ci: release infrastructure (#213) 1 year ago
frankenphp.c 09b2282441 feat: set SAPI version 1 year ago
frankenphp.go 1f3007337d feat: create a static build of FrankenPHP (#198) 1 year ago
frankenphp.h 09b2282441 feat: set SAPI version 1 year ago
frankenphp.png 625ab8906f docs: update logo 2 years ago
frankenphp.stub.php 9ef3bd7c47 feat: add fastcgi_finish_request() support (#69) 2 years ago
frankenphp_arginfo.h 9ef3bd7c47 feat: add fastcgi_finish_request() support (#69) 2 years ago
frankenphp_test.go 48908f599d fix: ensure that SERVER_PORT is always defined 1 year ago
go.mod 123d167729 ci: release infrastructure (#213) 1 year ago
go.sum 123d167729 ci: release infrastructure (#213) 1 year ago
options.go fb63099a88 feat: allow passing env vars to workers (#210) 1 year ago
recorder_test.go 5012ac30cd chore: improve tests and add missing file (#13) 2 years ago
release.sh 123d167729 ci: release infrastructure (#213) 1 year ago
static-builder.Dockerfile 123d167729 ci: release infrastructure (#213) 1 year ago
worker.go fb63099a88 feat: allow passing env vars to workers (#210) 1 year ago
worker_test.go fb63099a88 feat: allow passing env vars to workers (#210) 1 year ago

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

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

Go to https://localhost, and enjoy!

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

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