PHP wrapper for our API