v0.10.0evaluation preview

Multithreaded PHP application server for cloud-native infrastructure

A drop-in replacement for nginx + PHP-FPM — one Rust binary that keeps your app booted between requests for low latency, high concurrency, and built-in metrics & tracing.

QUICK START

Two lines in a Dockerfile

Copy your application into the image and run it. TLS, compression, rate limiting, metrics, health checks and structured logs are configured with environment variables.

Full Quick Start guide →
Dockerfile
FROM ghcr.io/oxphp/oxphp:0.10.0 COPY --chown=www-data:www-data . /var/www/html/public
$ docker build -t my-app . && docker run -p 80:80 my-app
FEATURES

One binary replaces the stack

All features →
01
Worker mode

Persistent PHP processes stay alive across requests — autoloaders, containers and DB connections initialize once.

02
Fiber multiplexing

Each worker handles multiple concurrent requests via PHP 8.4 Fibers; sleeps and awaits yield instead of blocking.

03
Async promises

Dispatch closures to a dedicated thread pool with await, race and any primitives — true parallel execution.

04
Shared state

Counters, atomics, channels, maps and pools shared across workers — no Redis round-trips, microsecond ops.

05
Zero-config observability

Prometheus metrics, OpenTelemetry traces, APM auto-instrumentation of PDO, cURL and Redis — no code changes.

06
Built-in profiler

Per-request profiles in xhprof, speedscope, pprof and FlameGraph formats — triggered by header, cookie or sampling.

WHY OXPHP

Compared to the alternatives

nginx+FPM
FrankenPHP
RoadRunner
OxPHP
Supported PHP versions
8.2–8.5
8.2–8.5
8.1–8.5
8.4 and 8.5
Language
C
Go + C
Go
Rust + C
TLS 1.3
✓ (rustls)
Persistent worker state
Backpressure / HTTP 529
manual
built-in
Prometheus metrics
plugin
built-in (Caddy admin)
built-in plugin
built-in
Structured JSON logs
via log_format
built-in
WebSocket server
✓ (proxies)
✓ (proxies)
✓ (centrifuge plugin)
Reverse proxy / upstream
✓ (full-featured)
✓ (Caddy)
Native install (non-Docker)
apt/yum/brew/port
brew, static binary
brew, binary
Platforms (runtime)
Linux/BSD/Mac
Linux/Mac/Win
Linux/Mac/Win
Linux only (glibc/musl)
License
BSD-2 / PHP License
MIT
MIT
AGPL-3.0
Age / production track record
20+ years
3+ years
7+ years
<1 year

OxPHP is under active development and not yet production-ready — it is ready for evaluation, staging and early adopters. Full comparison in the docs.