Documentation
Welcome to the php-via docs. Pick a path below depending on where you're starting from.
New to php-via?
Start with the tutorial. It walks you through building a reactive counter from scratch and introduces all three core primitives (signals, actions, views).
Understand the concepts
- Signals — reactive state and how it binds to the DOM
- Actions — server-side event handlers
- Views — Twig templates and inline rendering
- Scopes — TAB, ROUTE, SESSION, GLOBAL, and custom
- Components — isolated sub-contexts for composable UI
- Broadcasting — pushing updates to groups of clients
- Lifecycle — connect, disconnect, intervals, cleanup
Guides
- Middleware — PSR-15 middleware, auth, CORS, security
- Twig templates
- Deployment with OpenSwoole + Caddy
Background
- Design decisions — why persistent SSE, server-side state, and declarative scopes
Reference
- API reference — full Via and Context method signatures
- Comparison with other frameworks
- Common pitfalls — bugs that are easy to hit and hard to diagnose
- Changelog ↗