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. OxPHP works with legacy codebases and modern frameworks alike and is 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 workers stay alive across requests, so 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 all, race and any combinators for true parallel execution.
Counters, atomics, channels, maps and pools shared across workers, with microsecond operations instead of Redis round-trips.
Prometheus metrics, OpenTelemetry traces and APM auto-instrumentation of PDO, cURL and Redis, with 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, but it is ready for evaluation, staging and early adopters. The full comparison is in the docs.