Go to file
Alexander Stecher 56d5d50ea9
fix: watcher pattern matching and retrying (#1143)
Co-authored-by: Alliballibaba <alliballibaba@gmail.com>
2024-11-10 15:48:47 +01:00
.github perf: optimize $_SERVER import (#1106) 2024-11-04 15:34:00 +01:00
caddy chore: bump deps and misc improvements (#1135) 2024-11-04 16:42:15 +01:00
docs chore: bump deps and misc improvements (#1135) 2024-11-04 16:42:15 +01:00
internal fix: watcher pattern matching and retrying (#1143) 2024-11-10 15:48:47 +01:00
testdata chore: bump deps and misc improvements (#1135) 2024-11-04 16:42:15 +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 chore: use upstream e-dant/watcher headers and build system (#1119) 2024-10-31 09:39:51 +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 chore: bump deps and misc improvements (#1135) 2024-11-04 16:42:15 +01:00
frankenphp.c perf: optimize $_SERVER import (#1106) 2024-11-04 15:34:00 +01:00
frankenphp.go chore: bump deps and misc improvements (#1135) 2024-11-04 16:42:15 +01:00
frankenphp.h perf: optimize $_SERVER import (#1106) 2024-11-04 15:34:00 +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 and misc improvements (#1135) 2024-11-04 16:42:15 +01:00
go.sum chore: bump deps and misc improvements (#1135) 2024-11-04 16:42:15 +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 chore: various cleanups 2024-10-23 22:33:58 +02: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 feat: improve install script (#1097) 2024-10-15 18:06:21 +02: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 chore: bump deps and misc improvements (#1135) 2024-11-04 16:42:15 +01:00
SECURITY.md docs: fix link in SECURITY.md (#1111) 2024-10-22 17:04:43 +02:00
static-builder.Dockerfile chore: use upstream e-dant/watcher headers and build system (#1119) 2024-10-31 09:39:51 +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 chore: bump deps and misc improvements (#1135) 2024-11-04 16:42:15 +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 $PWD:/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