CPMobileAPI in PHP