09-12-2012, 04:21 AM
In easiest implementation it would require some kind of bridge: opened local port to send and recieve commands to/from plugin, which would be running as independent application written in PHP (using sockets to communicate). PHP is just not suitable to that applications.