Alpha ZealPHP is early-stage and under active development. APIs may change between minor versions until v1.0. Feedback and bug reports welcome on GitHub.

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

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