Phonegap build php api