PHP API for REACap