Multithreaded PHP application server for cloud-native infrastructure
- No nginx config
- No FPM pool tuning
- No process manager
One process instead of nginx and PHP-FPM. TLS, Brotli, rate limiting, Prometheus metrics, OpenTelemetry tracing and a per-request profiler are built in — all configured with environment variables. Works with legacy codebases and modern frameworks alike. Made for Docker and Kubernetes.
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.