GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - static-php/frankenphp: 🧟 The modern PHP app server

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

872 Commits
872 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
caddy
caddy
 
 
docs
docs
 
 
internal
internal
 
 
package
package
 
 
testdata
testdata
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
.golangci.yaml
.golangci.yaml
 
 
.hadolint.yaml
.hadolint.yaml
 
 
.markdown-lint.yaml
.markdown-lint.yaml
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
alpine.Dockerfile
alpine.Dockerfile
 
 
app.tar
app.tar
 
 
app_checksum.txt
app_checksum.txt
 
 
backoff.go
backoff.go
 
 
backoff_test.go
backoff_test.go
 
 
build-packages.sh
build-packages.sh
 
 
build-static.sh
build-static.sh
 
 
cgi.go
cgi.go
 
 
cgo.go
cgo.go
 
 
context.go
context.go
 
 
debugstate.go
debugstate.go
 
 
dev-alpine.Dockerfile
dev-alpine.Dockerfile
 
 
dev.Dockerfile
dev.Dockerfile
 
 
docker-bake.hcl
docker-bake.hcl
 
 
embed.go
embed.go
 
 
env.go
env.go
 
 
ext.go
ext.go
 
 
frankenphp.c
frankenphp.c
 
 
frankenphp.go
frankenphp.go
 
 
frankenphp.h
frankenphp.h
 
 
frankenphp.png
frankenphp.png
 
 
frankenphp.stub.php
frankenphp.stub.php
 
 
frankenphp_arginfo.h
frankenphp_arginfo.h
 
 
frankenphp_test.go
frankenphp_test.go
 
 
go.mod
go.mod
 
 
go.sh
go.sh
 
 
go.sum
go.sum
 
 
install.sh
install.sh
 
 
metrics.go
metrics.go
 
 
metrics_test.go
metrics_test.go
 
 
options.go
options.go
 
 
phpmainthread.go
phpmainthread.go
 
 
phpmainthread_test.go
phpmainthread_test.go
 
 
phpthread.go
phpthread.go
 
 
recorder_test.go
recorder_test.go
 
 
release.sh
release.sh
 
 
reload_test.sh
reload_test.sh
 
 
request_options.go
request_options.go
 
 
scaling.go
scaling.go
 
 
scaling_test.go
scaling_test.go
 
 
state.go
state.go
 
 
state_test.go
state_test.go
 
 
static-builder-gnu.Dockerfile
static-builder-gnu.Dockerfile
 
 
static-builder-musl.Dockerfile
static-builder-musl.Dockerfile
 
 
threadinactive.go
threadinactive.go
 
 
threadregular.go
threadregular.go
 
 
threadtasks_test.go
threadtasks_test.go
 
 
threadworker.go
threadworker.go
 
 
types.c
types.c
 
 
types.go
types.go
 
 
types.h
types.h
 
 
types_test.go
types_test.go
 
 
watcher_test.go
watcher_test.go
 
 
worker.go
worker.go
 
 
worker_test.go
worker_test.go
 
 
workerextension.go
workerextension.go
 
 
workerextension_test.go
workerextension_test.go
 
 
zizmor.yaml
zizmor.yaml
 
 

Repository files navigation

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

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

  • Classic mode
  • Worker mode
  • Early Hints support (103 HTTP status code)
  • Real-time
  • Efficiently Serving Large Static Files
  • Configuration
  • Writing PHP Extensions in Go
  • Docker images
  • Deploy in production
  • Performance optimization
  • Create standalone, self-executable PHP apps
  • Create static binaries
  • Compile from sources
  • Monitoring FrankenPHP
  • Laravel integration
  • Known issues
  • Demo app (Symfony) and benchmarks
  • Go library documentation
  • Contributing and debugging

Examples and Skeletons

  • Symfony
  • API Platform
  • Laravel
  • Sulu
  • WordPress
  • Drupal
  • Joomla
  • TYPO3
  • Magento2

About

🧟 The modern PHP app server

frankenphp.dev

Resources

Readme
License

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.