返回排行榜

dunglas/frankenphp

Gofrankenphp.dev

🧟 The modern PHP app server

caddygophpsapiworkerfrankenphp
Star 增长趋势
Star
7.5k
Forks
290
周增长
Issues
135
2k4k6k
2023年1月2023年6月2023年12月2024年6月
制品库Go Modulesgo get github.com/dunglas/frankenphp
README

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 Laravel and Symfony projects faster than ever thanks to their official integrations 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

Standalone Binary

We provide static FrankenPHP binaries for Linux and macOS containing PHP 8.4 and most popular PHP extensions.

On Windows, use WSL to run FrankenPHP.

Download FrankenPHP or copy this line into your terminal to automatically install the version appropriate for your platform:

curl https://frankenphp.dev/install.sh | sh
mv frankenphp /usr/local/bin/

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

![WARNING]

In production, prefer using the Docker images, the Brew package or compiling FrankenPHP from sources. The standalone binary is provided for development and testing purposes.

Docker

Alternatively, Docker images are available:

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

Go to https://localhost, and enjoy!

[!TIP]

Do not attempt to use https://127.0.0.1. Use https://localhost and accept the self-signed certificate. Use the SERVER_NAME environment variable to change the domain to use.

Homebrew

FrankenPHP is also available as a Homebrew package for macOS and Linux.

To install it:

brew install dunglas/frankenphp/frankenphp

To serve the content of the current directory, run:

frankenphp php-server

Docs

Examples and Skeletons

相关仓库
caddyserver/caddy

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

GoGo ModulesApache License 2.0goweb-server
caddyserver.com
74.2k4.8k
allinurl/goaccess

GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.

CMIT Licensegoaccessc
goaccess.io
20.7k1.2k
php/frankenphp

🧟 The modern PHP app server

GoGo ModulesMIT Licensecaddygo
frankenphp.dev
11.2k467
tinyauthapp/tinyauth

The tiniest OpenID Certified™ authorization and authentication server you have ever seen.

GoGo ModulesGNU Affero General Public License v3.02faauthentication
tinyauth.app
8k254
dunglas/mercure

🪽 An open, easy, fast, reliable and battery-efficient solution for real-time communications

GoGo ModulesGNU Affero General Public License v3.0apiweb-api
mercure.rocks
5.3k344
dunglas/vulcain

🔨 Fast and idiomatic client-driven REST APIs.

GoGo ModulesGNU Affero General Public License v3.0apihttp2
vulcain.rocks
3.6k103
lxhao61/integrated-examples

以 Nginx 或 Caddy(v2 版) 配合 V2Ray(v4 版) 或 Xray、Caddy(v2 版) 加专用插件、Hysteria 等打造常用科学上网的优化配置及最优组合示例,且提供集成特定插件的 Caddy(v2 版) 文件,分享给大家食用及自己备份。

ShellGNU General Public License v3.0nginxwebdav
2.5k481
wemake-services/wemake-django-template

Bleeding edge django template focused on code quality and security.

PythonPyPIMIT Licensedjangodocker
wemake-services.github.io/wemake-django-template/
2.3k223
qvest-digital/loginsrv

JWT login microservice with plugable backends such as OAuth2, Google, Github, htpasswd, osiam, ..

GoGo ModulesMIT Licensejwthtpasswd
1.9k148
hintjen/selfhosted-gateway

Self-hosted Docker native tunneling to localhost. Expose local docker containers to the public Internet via a simple docker compose interface.

ShellGNU Affero General Public License v3.0nginxwireguard
gethomerun.app
1.7k87
admpub/nging

Go语言Web管理面板,包含:计划任务 / MySQL管理 / Redis管理 / FTP管理 / SSH管理 / 服务器管理 / Caddy和Nginx配置 / DDNS / FRP可视化配置 / 云存储管理 等功能。可运行于 Windows / Linux / MacOS 等主流系统平台和 树莓派 / 路由器 等ARM设备

GoGo ModulesGNU Affero General Public License v3.0caddyftp-server
nging.coscms.com
1.6k224
caddyserver/xcaddy

Build Caddy with plugins

GoGo ModulesApache License 2.0caddy
1.5k147