Projects / PHP OAuth API


PHP OAuth API authorizes user access using the OAuth protocol. It abstracts OAuth 1.0, 1.0a, and 2.0 in the same class. It provides built-in support for popular OAuth servers: 37Signals, Amazon, Buffer, Bitbucket,, Discogs, Disqus, Dropbox with OAuth 1.0 and 2.0, Etsy, Eventful, Facebook, Fitbit, Flickr, Foursquare, github, Google with OAuth 1.0a and OAuth 2.0, Instagram, LinkedIn, Microsoft, Rdio, Reddit, RightSignature, Salesforce,, StockTwits, SurveyMonkey, Tumblr, Twitter, VK, Withings, Xero, XING, and Yahoo!. Every other OAuth server is supported by setting an endpoint URLs and other parameters using specific class variables or an external JSON configuration file. The class can also send requests to an API using the previously-obtained OAuth access token. For servers which support offline access, the class can renew expired tokens automatically using refresh tokens.

Operating Systems

RSS Recent releases

  •  25 Mar 2014 23:39

    Release Notes: This version adds support for OAuth servers 37Signals, Amazon, Buffer, Discogs, Etsy, Xero, and Rdio. It can read new server configurations from a JSON file. It can obtain the login dialog URL page automatically from the request token response. It can also parse API call XML responses using SimpleXML.

    •  27 Jan 2014 23:40

      Release Notes: This release adds support for OAuth servers Withings, VK, and Google with OAuth 1.0. It also adds support for API calls appending parameters to the request URL for non-POST OAuth 2.0 requests, and makes Twitter API call parameters not be passed via URL.

      •  14 Jan 2014 22:33

        Release Notes: This version adds support for Reddit and Dropbox with OAuth 2.0.

        •  17 Oct 2013 10:47

          Release Notes: This release adds a sub-class for storing and retrieving tokens in an encrypted way in cookies, instead of PHP session variables. The workaround to use the API key instead of the client secret to access SurveyMonkey was removed to make it work with their latest API changes. The access_token_parameter option variable was added to support unusual OAuth implementations like Foursquare that take the access token parameter with a different name when calling their API. The login with Yahoo! example was updated to point to the right page to create Yahoo! API projects.

          •  31 Jul 2013 17:57

            Release Notes: This release adds support for Disqus and SurveyMonkey. It also adds support for OAuth servers which need to pass the API key in the authorization URLs.


            Project Spotlight


            A Linux-based virtual tape library.


            Project Spotlight


            A tool to ease the execution of commands on multiple remote servers.