Reputation: 4263
Before I go and write a wrapper for Facebook and oAuth 2.0 I was wondering if anyone knew of any code out there that anyone else has used already.
Upvotes: 1
Views: 2351
Reputation: 3398
I've used the PHP-OAuth2 library by adoy to write a sample OAuth 2.0 client.
The docs at the time of writing describe it as a Light PHP wrapper for the OAuth 2.0 protocol (based on OAuth 2.0 Authorization Protocol draft-ietf-oauth-v2-15)
Upvotes: 1
Reputation: 57258
There is an extension to PHP that supports OAuth. It was written by John Jawed. An example can be found here and a walkthrough is also available.
This pecl package is considered the de facto standard by Rasmus Lerdorf.
Andy Smith has written a basic PHP library for OAuth.
Cal Henderson has contributed a simple OAuth library that primarily handles signing.
HTTP_OAuth is a PEAR package developed by Jeff Hodsdon and Bill Shupp (Digg). You can try it out using this tool.
There is now an OAuth component for CakePHP.
Justin Richer has developed a plugin for the Elgg social networking platform, based on the basic PHP library. This library allows Elgg to act as both an OAuth client (to access other services) and server (allowing OAuth-protected access to the Elgg API). The library supports both version 1.0 and revision 1.0a simultaneously. Documentation can be found on the Elgg wiki.
Zend_OAuth was contributed by Pádraic Brady. The source code can be found here.
Source: http://oauth.net/code/
Upvotes: 4
Reputation: 30996
Take a look at PHP's OAuth extension or http://code.google.com/p/oauth/.
Upvotes: 0