Simple PHP class for API requests