Nexus Documentation
Everything you need to build, run, and operate typed actor systems in PHP — from the first spawn() to production on Swoole.
composer require nexus-actors/nexusStart here
Browse the documentation
Core Concepts
Actors, behaviors, props, supervision, mailboxes, lifecycle, ask pattern, dead letters.
Guides
Message design, ask vs tell, routing, fan-out, rate limiting, sagas.
Runtimes
Fiber for development, Swoole for production, Step for deterministic tests.
HTTP & WebSockets
Typed handlers, routing attributes, middleware, auth, actor-backed WebSockets.
Persistence
Event sourcing, durable state, snapshots, and the single-writer principle.
Doctrine
Connection pools, EntityManager pooling, migrations, and HTTP integration.
Observability
OpenTelemetry traces, metrics, and logs across every actor boundary.
Scaling & Clustering
Worker pools on Swoole threads, hash-ring placement, cross-worker asks.
Operations
Deployment, graceful shutdown, tuning, troubleshooting, and the runbook.
Best Practices
When to use actors, supervision policy, passivation, pooling, testing.
Reference
Front-door classes, configuration, exceptions, attributes, and gotchas.
Architecture
Design philosophy, internals, and the architecture decision records.