Finite-State Machines in PHP

Scott Keck-Warren • April 24, 2030

Finite-State Machines in PHP

Finite-state machines (FSM) are a powerful tool we can use as developers to model how entities exist inside our our applications. They can be a little trick to get up and running but the PHP 8.x has brought us some amazing features that make FSMs easier to implement and maintain.

In this session, we'll discuss what FSMs are, how to model a user registration flow with a FSM, and then use the newest features of PHP 8.x to implement it including enum and property hooks.