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.
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 →Persistent PHP processes stay alive across requests — autoloaders, containers and DB connections initialize once.
Each worker handles multiple concurrent requests via PHP 8.4 Fibers; sleeps and awaits yield instead of blocking.
Dispatch closures to a dedicated thread pool with await, race and any primitives — true parallel execution.
Counters, atomics, channels, maps and pools shared across workers — no Redis round-trips, microsecond ops.
Prometheus metrics, OpenTelemetry traces, APM auto-instrumentation of PDO, cURL and Redis — no code changes.
Per-request profiles in xhprof, speedscope, pprof and FlameGraph formats — triggered by header, cookie or sampling.
Compared to the alternatives
OxPHP is under active development and not yet production-ready — it is ready for evaluation, staging and early adopters. Full comparison in the docs.