The simplest way would be to make a request to the PHP service with the time of your last read. Then you just query for any tuple (entity) with a last_update time greater than the last request time. This would require both applications to request for changes on an interval (maybe once per second).
The other way would be to create a long running PHP or C++ task that would continually query the database and push the data out via web-sockets. That tends to be harder to support and you quickly run into problems with keeping data "in sync", so you will ultimately end up sending out significantly more data than if the service had requested it on it's own.
** Please advise if this answers your question, or if you need additional details.