Go to file
Kévin Dunglas 12fb11eead
docs: embedding Laravel apps (#753)
* docs: embedding Laravel apps

* fix

* docs: embedding Octane apps

* fix

* fix

* cs

* cs

* fix md

* path explaination

* changing the storage path
2024-04-29 17:42:18 +02:00
.github ci: fix linux/amd64 static pipeline 2024-04-24 17:18:58 +02:00
C-Thread-Pool chore: switch to upstream C-Thread-Pool 2023-12-18 18:50:50 +01:00
caddy chore: prepare release 1.1.4 2024-04-25 11:35:32 +02:00
docs docs: embedding Laravel apps (#753) 2024-04-29 17:42:18 +02:00
internal refactor: faster $_SERVER variables creation 2023-11-16 14:40:52 +01:00
testdata fix: prevent crash when calling apache_request_headers() in non-HTTP context 2024-02-27 17:51:10 +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 feat: compress binary in Alpine with UPX 2024-02-20 19:38:03 +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: temporary directory name for embed apps 2024-04-28 10:45:38 +02:00
cgi.go perf: reduce allocs when creating $_SERVER (#540) 2024-03-12 18:31:30 +01:00
CONTRIBUTING.md docs: fix typo 2024-04-14 19:55:38 +02:00
dev-alpine.Dockerfile feat: compile with Go 1.22 (#568) 2024-02-12 10:00:46 +01:00
dev.Dockerfile feat: compile with Go 1.22 (#568) 2024-02-12 10:00:46 +01:00
docker-bake.hcl feat: compile with Go 1.22 (#568) 2024-02-12 10:00:46 +01:00
Dockerfile feat: add Brotli compression support (#524) 2024-01-30 18:33:59 +01:00
embed.go fix: temporary directory name for embed apps 2024-04-28 10:45:38 +02:00
frankenphp_arginfo.h feat: add apache_response_headers() function (#530) 2024-01-31 12:34:30 +01:00
frankenphp_test.go update test (#688) 2024-03-24 16:28:15 +01:00
frankenphp.c perf: hint the number of threads to TSRM (#655) 2024-03-13 18:28:07 +01:00
frankenphp.go fix reading post bodies (#686) 2024-03-24 12:18:46 +01:00
frankenphp.h perf: reduce allocs when creating $_SERVER (#540) 2024-03-12 18:31:30 +01:00
frankenphp.png docs: update logo 2022-10-14 12:23:39 +02:00
frankenphp.stub.php feat: add apache_response_headers() function (#530) 2024-01-31 12:34:30 +01:00
go.mod chore: bump golang.org/x/net from 0.22.0 to 0.24.0 2024-04-23 14:35:38 +02:00
go.sum chore: bump golang.org/x/net from 0.22.0 to 0.24.0 2024-04-23 14:35:38 +02:00
LICENSE docs: add license (#24) 2022-10-15 11:21:21 +02:00
options.go perf: reduce allocs when creating $_SERVER (#540) 2024-03-12 18:31:30 +01:00
README.md docs: Turkish translation (#654) 2024-03-13 22:01:06 +01:00
recorder_test.go chore: improve tests and add missing file (#13) 2022-10-11 20:41:50 +02:00
release.sh ci: use Apple Silicon machines when useful (#550) 2024-02-04 18:25:04 +01:00
reload_test.sh fix: random crashes when reloading (#394) 2023-12-18 09:05:49 +01:00
request_options.go chore: fix function name in comment 2024-04-09 16:45:12 +02:00
smartpointer.go Fix memory leak (#442) 2023-12-28 00:16:19 +01:00
static-builder.Dockerfile fix: DOMdocument not found when building embedded apps 2024-04-27 03:17:28 +02:00
worker_test.go perf: reduce allocs when creating $_SERVER (#540) 2024-03-12 18:31:30 +01:00
worker.go perf: reduce allocs when creating $_SERVER (#540) 2024-03-12 18:31:30 +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: Download FrankenPHP

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