Kill boolean flag soup forever. Build a strict Finite State Machine, a zero-dependency SQLite Event Store, a CLI Time-Travel Debugger, and Read Projections in modern PHP 8.3
TL;DR: Storing workflow state across 6 boolean columns creates 2^6 = 64 possible states when your business only allows 7. In this 3-part tutorial, we build the Galactic Parcel Service order engine in pure PHP 8.3—combining a Finite State Machine (backed enums + exhaustive match ), lightweight Event Sourcing ( readonly DTOs + SQLite), and an interactive Time-Travel CLI Debugger .
Companion Video Series & GitHub Repository
This written guide is the complete standalone reference for my 3-part video mini-series .…