I haven’t looked closely at this but it sounds like there might be some overlap with @michaeld’s PHP API client for Discourse:
I haven’t looked closely at this but it sounds like there might be some overlap with @michaeld’s PHP API client for Discourse: