Events
Events in Semitexa PHP: sync, deferred and queued handlers, domain event dispatch, request pipeline events and Server-Sent Events (SSE) streams.
-
Execution Arena
Launch the same backend intent in sync, Swoole async, and queued modes, then watch the proof arrive over SSE.
-
Sync Events
Dispatch an event and all sync listeners run before the response is sent.
-
Deferred Handler
Heavy work runs after the response is sent, so the user gets instant feedback.
-
Queued Handler
Events survive restarts and scale across workers, backed by a durable message queue.
-
Server-Sent Events (SSE)
Live Server-Sent Events demo: one long-lived HTTP connection streams real backend events to the browser via EventSource. No WebSockets, plain PHP.
-
Ledger Demo
Dispatch a protected demo event and inspect only the persisted demo ledger rows through a safe read-only view.
-
Request Pipeline Events
The events every request passes through (AuthCheck, AccessCheck, HandleRequest) and the Swoole server lifecycle hooks around them.
-
Domain Event Dispatch and Configuration
Choosing sync or async per handler, the HandlerCompleted event, running the async worker, and how the three event kinds compare.