Files
frankenphp/docs/cn
Jerry Ma 3bc426482a feat: add glibc-based static binary (#1438)
* Add gnu static binary build support

* Remove --libc option

* configure ./build-static.sh to allow extension loading with glibc

* use tabs everywhere

* do not use prebuilt sources for glibc build

* ffi does not work with musl builds

* remove unnecessary tabs

* disable opcache jit on musl

* disable opcache jit on musl again

* err, build command, not download command

* cs fixes

* spellcheck

* even more cs fixes

* fix ar removing .a libs

* disable ffi extension for now

* add gnu static action

* add gnu-static target

* skip CHECKOV 2 and 3

* rename static-builder to static-builder-musl, gnu-static to static-builder-gnu
run arm64 gnu job on ubuntu-arm

* rename build-linux to build-linux-musl

* rename job description to specify musl

* higher optimisation flags

* Update docker-bake.hcl

---------

Co-authored-by: DubbleClick <m@pyc.ac>
Co-authored-by: Kévin Dunglas <kevin@dunglas.fr>
2025-03-22 11:41:47 +01:00
..
2024-11-11 23:25:01 +01:00
2024-12-14 01:45:01 +01:00
2024-05-16 14:42:30 +02:00
2024-03-13 22:01:06 +01:00
2024-10-15 18:06:21 +02:00

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.4 和最流行的 PHP 扩展:下载 FrankenPHP

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

./frankenphp php-server

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

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

文档

示例和框架