Kévin Dunglas 4a8555571c docs: fix build/curl instructions in more languages 4 weeks ago
..
CONTRIBUTING.md 0500ebc191 perf: improve PHP thread management (#898) 2 months ago
README.md da342b6f2f docs: recommend FrankenWP for WordPress (#785) 3 months ago
compile.md 4a8555571c docs: fix build/curl instructions in more languages 3 weeks ago
config.md 0b4a427cac feat: use the new RegisterDirectiveOrder to simplify config 3 months ago
docker.md 60e3aba981 docs: fix and improve compilation docs 1 month ago
early-hints.md 7f32ab6404 docs: fix Chinese docs to make it more readable (#615) 6 months ago
embed.md 7a81855f12 docs: warn about .dockerignore when embedding (#609) 6 months ago
github-actions.md 7f32ab6404 docs: fix Chinese docs to make it more readable (#615) 6 months ago
known-issues.md ee05142582 docs: Added missing slash in multiline command. 5 months ago
laravel.md 952dd7a79b docs: use octane:frankenphp instead of octane:start (#893) 2 months ago
mercure.md d01733dd3e docs: better Mercure hub schema 4 months ago
production.md 6a3db9429d docs: Turkish translation (#654) 6 months ago
static.md 7f32ab6404 docs: fix Chinese docs to make it more readable (#615) 6 months ago
worker.md 3714fdf3a1 fix: superglobals-realated crash with custom extensions in worker mode (#796) 3 months ago

README.md

FrankenPHP: 适用于 PHP 的现代应用服务器

FrankenPHP

FrankenPHP 是建立在 Caddy Web 服务器之上的现代 PHP 应用程序服务器。

FrankenPHP 凭借其令人惊叹的功能为您的 PHP 应用程序提供了超能力:早期提示worker 模式实时功能、自动 HTTPS、HTTP/2 和 HTTP/3 支持......

FrankenPHP 可与任何 PHP 应用程序一起使用,并且由于提供了与 worker 模式的集成,使您的 Symfony 和 Laravel 项目比以往任何时候都更快。

FrankenPHP 也可以用作独立的 Go 库,将 PHP 嵌入到任何使用 net/http 的应用程序中。

了解更多 frankenphp.dev 以及在以下地址中:

Slides

开始

Docker

docker run -v $PWD:/app/public \
    -p 80:80 -p 443:443 -p 443:443/udp \
    dunglas/frankenphp

访问 https://localhost, 并享受吧!

[!TIP]

不要尝试使用 https://127.0.0.1。使用 https://localhost 并接受自签名证书。 使用 SERVER_NAME 环境变量 更改要使用的域。

独立二进制

如果您不想使用 Docker,我们为 Linux 和 macOS 提供独立的 FrankenPHP 二进制文件 ,其中包含 PHP 8.3 和最流行的 PHP 扩展:下载 FrankenPHP

若要启动当前目录的内容,请运行:

./frankenphp php-server

您还可以使用以下命令运行命令行脚本:

./frankenphp php-cli /path/to/your/script.php

文档

示例和框架