Files
frankenphp/docs/cn
Kévin Dunglas 3714fdf3a1 fix: superglobals-realated crash with custom extensions in worker mode (#796)
* test: failing test reproducing #767

* fix

* Update frankenphp.c

Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>

* Update frankenphp.c

Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>

* review

* ZVAL_COPY

* fix

* add back current $_SERVER behavior

* add docs

* bad fix for the leak

* clean test

* improve tests

* fix test

* fix

* cleanup

* clarify destroy super globals name

* micro-optim: use zval_ptr_dtor_nogc to destroy super globals

* style

* fix

* better name for frankenphp_free_server_context

* more cleanup

* remove useless memset

* more cleanup

* continue refactoring

* fix and update docs

* docs

---------

Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
2024-06-05 15:24:16 +02:00
..
2024-05-16 14:42:30 +02:00
2024-03-13 22:01:06 +01: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.3 和最流行的 PHP 扩展:下载 FrankenPHP

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

./frankenphp php-server

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

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

文档

示例和框架