php api for clg