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 →

Upgrading from 0.13?

Upgrading to 0.14 takes a 0.13 app to 0.14 in the order the errors appear, with a worked example.

Understand the concepts

  • Signals: reactive state and how it binds to the DOM
  • Actions: server-side event handlers
  • Views: what a tab shows, how it updates and when tabs share a render
  • Scopes: TAB, ROUTE, SESSION, GLOBAL, and custom
  • Components: isolated sub-contexts for composable UI
  • Composition: class-based pages and components with PHP attributes
  • Broadcasting: pushing updates to groups of clients
  • Lifecycle: connect, disconnect, revival, timers and cleanup

Guides

Background

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

Reference