Go to file
Alexander Hofbauer b40c5a64a8
Some checks failed
Lint Code Base / Lint Code Base (push) Has been cancelled
docs: update instructions for xcaddy in Dockerfile (#1170)
2024-11-18 13:45:11 +01:00
.github perf: optimize $_SERVER import (#1106) 2024-11-04 15:34:00 +01:00
caddy chore: prepare release 1.3.1 2024-11-14 17:47:11 +01:00
docs docs: update instructions for xcaddy in Dockerfile (#1170) 2024-11-18 13:45:11 +01:00
internal fix: missing build tag for fastabs 2024-11-13 20:08:42 +01:00
testdata chore: simplify benchmark.Caddyfile 2024-11-14 00:37:20 +01:00
.dockerignore fix: do not extract embedded app on every execution (#488) 2024-01-21 18:13:08 +01:00
.gitignore ci: add Apple Silicon build script (#313) 2023-11-19 17:06:18 +01:00
.hadolint.yaml ci: add Super-Linter (#323) 2023-12-01 17:26:21 +01:00
.markdown-lint.yaml ci: add Super-Linter (#323) 2023-12-01 17:26:21 +01:00
alpine.Dockerfile chore: use upstream e-dant/watcher headers and build system (#1119) 2024-10-31 09:39:51 +01:00
app_checksum.txt fix: do not extract embedded app on every execution (#488) 2024-01-21 18:13:08 +01:00
app.tar feat: use tar to embed apps (#333) 2023-12-03 19:17:36 +01:00
build-static.sh fix: ignore watcher dir creation error if the watcher exists (#1165) 2024-11-14 23:45:59 +01:00
cgi.go chore: bump deps and misc improvements (#1135) 2024-11-04 16:42:15 +01:00
CONTRIBUTING.md chore: bump deps and misc improvements (#1135) 2024-11-04 16:42:15 +01:00
dev-alpine.Dockerfile chore: use upstream e-dant/watcher headers and build system (#1119) 2024-10-31 09:39:51 +01:00
dev.Dockerfile chore: use upstream e-dant/watcher headers and build system (#1119) 2024-10-31 09:39:51 +01:00
docker-bake.hcl feat: restart workers when on source changes (#1013) 2024-10-07 13:17:24 +02:00
Dockerfile chore: use upstream e-dant/watcher headers and build system (#1119) 2024-10-31 09:39:51 +01:00
embed.go chore: various cleanups 2024-10-23 22:33:58 +02:00
frankenphp_arginfo.h fix: getallheaders() must return request headers (#772) 2024-05-08 11:43:39 +02:00
frankenphp_test.go perf: cache computations in WithRequestDocumentRoot (#1154) 2024-11-13 07:10:53 +01:00
frankenphp.c remove opcache_reset (#1173) 2024-11-17 19:19:53 +01:00
frankenphp.go perf: use buffered chans for requests (#1146) 2024-11-11 18:11:01 +01:00
frankenphp.h remove opcache_reset (#1173) 2024-11-17 19:19:53 +01:00
frankenphp.png docs: update logo 2022-10-14 12:23:39 +02:00
frankenphp.stub.php fix: getallheaders() must return request headers (#772) 2024-05-08 11:43:39 +02:00
go.mod chore: bump deps (#1150) 2024-11-11 23:24:42 +01:00
go.sum chore: bump deps (#1150) 2024-11-11 23:24:42 +01:00
install.sh fix: term capability code may not be available 2024-10-16 14:28:20 +02:00
LICENSE docs: add license (#24) 2022-10-15 11:21:21 +02:00
metrics_test.go handle worker failures gracefully (#1038) 2024-10-03 21:53:12 +02:00
metrics.go perf: cache computations in WithRequestDocumentRoot (#1154) 2024-11-13 07:10:53 +01:00
options.go feat: restart workers when on source changes (#1013) 2024-10-07 13:17:24 +02:00
php_thread_test.go perf: remove all cgo handles (#1073) 2024-10-09 07:31:09 +02:00
php_thread.go perf: use hot worker threads when possible (#1126) 2024-11-04 16:18:44 +01:00
README.md docs: simplify docker run command (#1168) 2024-11-15 15:21:03 +01:00
recorder_test.go chore: bump deps and misc improvements (#1135) 2024-11-04 16:42:15 +01:00
release.sh ci: upgrade to super-linter 6 (#952) 2024-08-04 14:05:54 +02:00
reload_test.sh ci: upgrade to super-linter 6 (#952) 2024-08-04 14:05:54 +02:00
request_options.go perf: cache computations in WithRequestDocumentRoot (#1154) 2024-11-13 07:10:53 +01:00
SECURITY.md docs: fix link in SECURITY.md (#1111) 2024-10-22 17:04:43 +02:00
static-builder.Dockerfile perf: cache computations in WithRequestDocumentRoot (#1154) 2024-11-13 07:10:53 +01:00
watcher_test.go refactor: use build tags to disable, instead of to enable a feature (#1113) 2024-10-24 14:14:47 +02:00
worker_test.go chore: bump deps and misc improvements (#1135) 2024-11-04 16:42:15 +01:00
worker.go remove opcache_reset (#1173) 2024-11-17 19:19:53 +01:00

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 .:/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.

On Windows, use WSL to run FrankenPHP.

Download FrankenPHP or copy this line into your terminal to automatically install the version appropriate for your platform:

curl https://frankenphp.dev/install.sh | sh
mv frankenphp /usr/local/bin/

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