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

Robert Landers 126e1282f5 fix lint 1 год назад
.github 497876443c ci: fix static image inspect 1 год назад
C-Thread-Pool 3709c2a50b chore: switch to upstream C-Thread-Pool 1 год назад
caddy 11711bb6da chore: prepare release 1.0.2 1 год назад
docs f6873efee4 Added Laravel Octane Documentation (#422) 1 год назад
internal aa1d968dcf refactor: faster $_SERVER variables creation 1 год назад
testdata f71f9875ca perf: add benchmark (#392) 1 год назад
.dockerignore 537f899939 feat: use tar to embed apps (#333) 1 год назад
.gitignore 2e72b50d10 ci: add Apple Silicon build script (#313) 1 год назад
.hadolint.yaml c9bf9940d1 ci: add Super-Linter (#323) 1 год назад
.markdown-lint.yaml c9bf9940d1 ci: add Super-Linter (#323) 1 год назад
CONTRIBUTING.md 5c9d7d3f6d docs: link to the website 1 год назад
Dockerfile fd6e28df2a ci: improve linker flags (#383) 1 год назад
LICENSE f8bdd640cf docs: add license (#24) 2 лет назад
README.md 0054b92115 docs: link to TYPO3 skeleton 1 год назад
alpine.Dockerfile fd6e28df2a ci: improve linker flags (#383) 1 год назад
app.tar 537f899939 feat: use tar to embed apps (#333) 1 год назад
build-static.sh 9bf991ca88 ci: add igbinary extension and LZ4 support to static builds 1 год назад
cgi.go 60a021544d slightly faster :) 1 год назад
dev-alpine.Dockerfile c9bf9940d1 ci: add Super-Linter (#323) 1 год назад
dev.Dockerfile c9bf9940d1 ci: add Super-Linter (#323) 1 год назад
docker-bake.hcl 67fdefc416 ci: build Linux aarch64 binaries (#432) 1 год назад
embed.go 537f899939 feat: use tar to embed apps (#333) 1 год назад
frankenphp.c 126e1282f5 fix lint 1 год назад
frankenphp.go b65cdd5cb5 clean up 1 год назад
frankenphp.h c9bf9940d1 ci: add Super-Linter (#323) 1 год назад
frankenphp.png 625ab8906f docs: update logo 2 лет назад
frankenphp.stub.php 9ef3bd7c47 feat: add fastcgi_finish_request() support (#69) 2 лет назад
frankenphp_arginfo.h c9bf9940d1 ci: add Super-Linter (#323) 1 год назад
frankenphp_test.go aa1d968dcf refactor: faster $_SERVER variables creation 1 год назад
go.mod 9b09be22be chore: bump github.com/stretchr/testify from 1.8.1 to 1.8.4 1 год назад
go.sum 9b09be22be chore: bump github.com/stretchr/testify from 1.8.1 to 1.8.4 1 год назад
options.go fb63099a88 feat: allow passing env vars to workers (#210) 1 год назад
recorder_test.go 5012ac30cd chore: improve tests and add missing file (#13) 2 лет назад
release.sh 7c5f18fe3f ci: fix changelog generation 1 год назад
reload_test.sh 517e086786 fix: random crashes when reloading (#394) 1 год назад
request_options.go aa1d968dcf refactor: faster $_SERVER variables creation 1 год назад
smartpointer.go d236d1b5ba try inlining 1 год назад
static-builder.Dockerfile b7c8d4cd49 Add ctype and session PHP extensions to static builder 1 год назад
worker.go 66666ce15f use pointers 1 год назад
worker_test.go aa1d968dcf refactor: faster $_SERVER variables creation 1 год назад

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 and Laravel projects faster than ever thanks to the provided integration 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 \
    dunglas/frankenphp

Go to https://localhost, and enjoy!

[!TIP]

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.

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