PHP class to query against SpaceGDN