PHPTS Docs

PHPTS 2.0.13 Update: New Event-Triggered Tasks

Released on November 19, 2026, PHPTS 2.0.13 adds the Event-Triggered Tasks module: WebSocket, TCP, MQTT, serial port, and timer event sources are unified through the built-in Rust event gateway, and PHP scripts handle events and reply on the same channel. With the phpts_kv inter-process shared key-value store and the Server → Client push interface, any ordinary PHP page can push messages to online clients, TCP connections, or serial ports. This article covers a three-minute quick start, script conventions, the push loop, timer re-entrancy prevention, and five debugging assistants.

version