I use the Paho.MQTT javascript library to connect to an mqtt server. When things happen php side eg order received, payment received etc, they publish messages to the mqtt server which looks after notifying any web pages which have subscribed to the relevant topics.