PHP event reactor infrastructure