Use mixpanel's PHP API