Documentation menu

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).

Getting Started →

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

Background

  • Design decisions — why persistent SSE, server-side state, and declarative scopes

Reference