Google Cloud Messaging Application Server port from JAVA to PHP