Documentation/Launching the application/FrankenPHP

FrankenPHP

FrankenPHP is a modern application server for PHP, designed for high performance with support for asynchronous tasks, HTTP/2, HTTP/3, and WebSockets. The server can function as a standalone application or as an extension for various web servers, such as Caddy.
This web server is written in Go and leverages CGO for deep integration with PHP, delivering minimal overhead and fast request handling. It supports standard PHP extensions, debugging tools (e.g., Xdebug), as well as integration with profilers and monitoring systems.

FrankenPHP has limited support for Windows.

The FrankenPHP server is distributed as binary files and Docker images. The latest releases can be found in the official GitHub repository. Installation instructions are available in the server documentation at frankenphp.dev/docs.

FrankenPHP operates in several modes; this example demonstrates the simplest way to get started locally with the framework and to verify that it is compatible with this web server.
For the HLEB2 framework, simply specify the path to the public directory when launching from the project root:

$frankenphp php-server -r public/ --listen 127.0.0.1:8080

Here, an explicit address and port have been assigned for local development. Make sure this port is not in use.

Your application will now be accessible at:
http://127.0.0.1:8080

WebRotor Routing

Страница создана: @fomiash
К началу страницы