Login   Register  
PHP Classes
elePHPant
Icontem

PHP OAuth API

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Manuel Lemos
Name: Manuel Lemos <e-mail contact>
Packages: 32 Browse all classes by Manuel Lemos Browse all classes by
Country: Portugal Portugal - PHP jobs in Portugal
Age: 44
All time rank: 1
Week rank: 3 Down1 in Portugal Portugal Equal


  Detailed description   Download .zip .tar.gz  
This class can authorize the access of users to an API using the OAuth protocol.

It abstracts OAuth 1.0, 1.0a and 2.0 in the same class, so you can use the same obtain a token to authorize the access on behalf of the current user any API that supports any version of the OAuth protocol.

It provides built-in support to several popular OAuth servers, so you do not have to configure the class manually with all OAuth server specific details.

Currently it provides built-in support for OAuth servers of Bitbucket, Box.net, Dropbox, Eventful, Facebook, Fitbit, Flickr, Foursquare, github, Google, Instagram, LinkedIn, Microsoft, RightSignature, Scoop.it, StockTwits, Tumblr, Twitter, XING and Yahoo.

Every other OAuth server is supported setting end point URLs and other parameters using specific class variables.

The class can also send requests to API using the previously obtained OAuth access token.

It also supports 2 legged API access, so it can send signed API requests that do not require user authorization.

For servers that support offline access like Google and Box.net, the class can also verify if the access token expired and refresh the token value before sending an API call, without requiring the user presence.

  Classes of Manuel Lemos  >  PHP OAuth API  >  Download .zip .tar.gz  >  Support forum Support forum (71)  >  Blog Blog (2)  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP OAuth API
Base name: oauth-api
Description: Authorize and access APIs using OAuth
Version: -
PHP version: 5.2
License: BSD License
All time users: 5323 users
All time rank: 398
Week users: 106 users
Week rank: 15 Up
 
  Groups   Screenshots Screenshots   Freshmeat project  
  Rate classes User ratings   Dependencies   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image User Management User records, authentication and session handling View top rated classes
Group folder image Web services Web data clipping, SOAP or XML-RPC clients and servers View top rated classes

  Files folder image Screenshots  
Example of information retrieved from user account after logging in Facebook using OAuth
File Role Description
Accessible without login Image file php-oauth-api.png Screen Example of information retrieved from user account after logging in Facebook using OAuth


  Freshmeat project  
PHP OAuth API
Project record: php-oauth-api
Popularity score: 366.62
Vitality score: 8.46

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (91.7%)
Good (87.5%)
Good (83.3%)
Good (90.3%)
-
-
Sufficient (71.9%)
137
Month:
Sufficient (66.7%)
Not sure (58.3%)
Not sure (58.3%)
Not sure (58.3%)
-
-
Not sure (50.8%)
5

  Packages needed by this class  
Class Dependency Why it is needed
PHP HTTP protocol client
Required
Send HTTP request to OAuth servers

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Accessible without login HTML file oauth_client_class.html Doc. Documentation of the OAuth client class
Plain text file database_oauth_client.php Class OAuth client sub-class for storing and retrieving tokens in databases
Accessible without login Plain text file LICENSE Data License of the class
Accessible without login Plain text file login_with_bitbucket.php Example Example of logging in with Bitbucket using OAuth
Accessible without login Plain text file login_with_box.php Example Example of logging in with Box.net using OAuth
Accessible without login Plain text file login_with_dropbox.php Example Example of logging in with Dropbox using OAuth
Accessible without login Plain text file login_with_eventful.php Example Example of logging in with Eventful using OAuth
Accessible without login Plain text file login_with_facebook.php Example Example of logging in with Facebook using OAuth
Accessible without login Plain text file login_with_fitbit.php Example Example of logging in with Fitbit using OAuth
Accessible without login Plain text file login_with_flickr.php Example Example of logging in with Flickr using OAuth
Accessible without login Plain text file login_with_google.php Example Example of logging in with Google using OAuth
Accessible without login Plain text file login_with_instagram.php Example Example of logging in with Instagram using OAuth
Accessible without login Plain text file login_with_linkedin.php Example Example logging in with LinkedIn using OAuth
Accessible without login Plain text file login_with_microsoft.php Example Example of logging in with Microsoft Hotmail or Windows Live account
Accessible without login Plain text file login_with_rightsignature.php Example Example of logging in with RightSignature using OAuth
Accessible without login Plain text file login_with_scoopit.php Example Example of logging in with Scoop.it using OAuth
Accessible without login Plain text file login_with_stocktwits.php Example Example of logging in with StockTwits using OAuth
Accessible without login Plain text file login_with_tumblr.php Example Example of logging in with Tumblr using OAuth
Accessible without login Plain text file login_with_twitter.php Example Example of logging in with Twitter using OAuth
Accessible without login Plain text file login_with_xing.php Example Example of logging in with XING using OAuth
Accessible without login Plain text file login_with_yahoo.php Example Example of logging in with Yahoo using OAuth
Accessible without login Plain text file mysqli_login_with_google.php Example Example of logging in with Google using OAuth and storing the access token in a MySQL database
Plain text file mysqli_oauth_client.php Class OAuth client sub-class for storing and retrieving tokens in a MySQL database using the mysqli extension
Plain text file mysqli_offline_access_to_google.php Class Example of accessing the Google API offline using a OAuth token stored in a MySQL database
Accessible without login Plain text file oauth.sql Data MySQL queries to install the oauth_session table
Plain text file oauth_client.php Class OAuth client class
Accessible without login Plain text file test_oauth_client.php Example Example of using the OAuth client

Download all files: oauth-api.tar.gz oauth-api.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.