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

Kévin Dunglas a4938102e1 perf: read the request body directly in the memory allocated by PHP 1 year ago
.circleci 5ad98f7f0e ci: fix release workflow 1 year ago
.github c615fe0087 feat: add experimental CLI support (#239) 1 year ago
C-Thread-Pool ec35afdc7f chore: remove C-Thread-Pool/example.c (#259) 1 year ago
caddy 255dd4b6d6 chore: prepare release 1.0.0-rc.2 1 year ago
docs bb1ed8b212 Update docker.md 1 year ago
internal c615fe0087 feat: add experimental CLI support (#239) 1 year ago
testdata c615fe0087 feat: add experimental CLI support (#239) 1 year ago
.dockerignore 2d91a606fd feat(caddy): php_server simplified directive (#235) 1 year ago
.gitignore c615fe0087 feat: add experimental CLI support (#239) 1 year ago
CONTRIBUTING.md 2a205b16ce docs: add dockerignore issue in lower docekr version to CONTRIBUTING.md 1 year ago
Dockerfile 90caf2701a fix: healthcheck URL 1 year ago
LICENSE f8bdd640cf docs: add license (#24) 2 years ago
README.md 5874072d46 docs: Laravel example (#231) 1 year ago
alpine.Dockerfile 90caf2701a fix: healthcheck URL 1 year ago
cgi.go e7bd54cc00 Chore: remove duplicated code in `populateEnv()` 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 8c57f4cc85 feat: upgrade to PHP 8.3RC4 1 year ago
frankenphp.c c615fe0087 feat: add experimental CLI support (#239) 1 year ago
frankenphp.go a4938102e1 perf: read the request body directly in the memory allocated by PHP 1 year ago
frankenphp.h c615fe0087 feat: add experimental CLI support (#239) 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 c615fe0087 feat: add experimental CLI support (#239) 1 year ago
go.mod 385b47ee3b chore: bump deps 1 year ago
go.sum 120006a297 chore: bump deps 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 55ccbb8d60 chore: prepare release 1.0.0-beta.1 1 year ago
static-builder.Dockerfile ea2c7c2895 feat: add ext-ldap and ext-sysvsem to static builder, add PHP_EXTENSION_LIBS to enhance extensions (#203) 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