Hey, I added a state machine for Yii, it keeps track of different object states and encapsulates the logic that applies to that state as well as providing events that can be handled when the object transitions from one state to another, the code is available at github:
Cool I hadn’t seen that one, thanks for the link, it looks like that one depends on active record, whereas this can be used for any kind of component.