PHP version of the Node.js opener module