Esc
ZealPHP Documentation
Two surfaces, one source of truth. 16 narrative guides
walk through each subsystem with worked examples; the
API reference is auto-generated from
src/ docblocks and covers every public method, property,
and class.
Getting started
- Getting Started Install PHP/OpenSwoole/uopz, boot your first server.
- Directory Structure Repo layout — where routes, APIs, templates, and src/ live.
- Runtime Architecture Request lifecycle, lifecycle setters (v0.2.27 safety throw), mode matrix.
Routing & responses
- Routing route(), nsRoute, nsPathRoute, patternRoute + parameter injection.
- API Layer ZealAPI file-based REST, v0.2.25 auth hooks.
- Error Handling setErrorHandler, uopz overrides, recursion guard, content-negotiated 5xx.
- Templates & Rendering render / renderToString / renderStream / include / fragment.
Surfaces
- Streaming yield-based SSR, stream(), sse(), renderStream.
- WebSocket App::ws(), per-worker fd map, frame opcodes, cross-worker broadcast.
- Tasks & Concurrency go(), task workers, App::tick/after, coproc().
- Middleware & Auth All 28 PSR-15 middleware classes + Apache/nginx parity.
Operations
- Deployment systemd unit, CLI flags, PID files, Docker, OPcache tuning.
- FastCGI Backends Front php-fpm or any FCGI server — cgiMode('fcgi') + registerCgiBackend() for custom upstreams.
- Fuzzing slowhttptest, radamsa, gabbi — HTTP framing & conformance fuzzing.
Background
- Apache Parity What Apache features port — and what doesn't.
- Competitive Analysis vs FrankenPHP, RoadRunner, Octane, AMPHP.
- Standards & Roadmap PSR conformance + the v0.3.0+ roadmap.