A simple, yet flexible finite state machine for PHP.