Nice lightweight implementation!
However looking at the usage instructions I was first confused
how the machine knows about its transitions, actions and events.
Looking at the code I guess a little
$machine->addEvent('flip', array($turnOn, $turnOff));
would prevent confusing me next time! ;)
Thanks for sharing tho!
wow, i didn't realize that I left that out of the README file. thanks for the heads up!