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

Kévin Dunglas ec35afdc7f chore: remove C-Thread-Pool/example.c (#259) 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 51038bbdf5 chore: log maxprocs (#257) 1 year ago
docs 669a0175f3 Fix highlighting in config docs 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 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 5874072d46 docs: Laravel example (#231) 1 year ago
alpine.Dockerfile 53a7f64984 fix(docker): increase thread stack size on Alpine (#223) 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 c615fe0087 feat: add experimental CLI support (#239) 1 year ago
frankenphp.go ec35afdc7f chore: remove C-Thread-Pool/example.c (#259) 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 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 55ccbb8d60 chore: prepare release 1.0.0-beta.1 1 year ago
static-builder.Dockerfile 9bf24b7d88 fix(static): add start-group and end-group around php-config libs (#241) 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