So, i made the php code look more like the JS example.
Now, i have a doubt about the limits of PHP beign non-dynamic.
My version of the example uses html meta refresh to update the view.
¿How should be the reactive loop behavior here?
I let the model decide when to render or not the state on certain cases, breaking the loop:
I think i have the alternative option of say to the view the next event, modifying the meta refresh url, so the next refresh an event is trigered.