Branch from https://code.google.com/p/oauth2-php/