Reputation: 50375
https://www.php.net/manual/en/oauth.setup.php
who has used it ? Is it OAuth 1.0 or 2.0?
I'm going to write an OAuth solution for my project but not sure whether I should write from scratch or use this extension. Is there other good PHP OAuth library you recommend? I'm looking for solid library and ease of installation.
Upvotes: 0
Views: 372
Reputation: 5642
The official OAuth 2 page - http://oauth.net/2/ - is currently linking to this php oauth2 implementation on github: https://github.com/quizlet/oauth2-php
Upvotes: 0
Reputation: 1040
I'm using it in all my social apps API calls for facebook, linkedin Twitter and others, it is very useful, though there are some specific tweeks you need to do for different services to work. I'm using it currently with Xampp 1.7.7 on windows. It works well but it took me some time to get it to work properly, prepare to spend a lot of time on it, especially since documentation for all the services is not very good. Current support is for PHP 5.3, I am looking for PHP 5.4 windows version and havn't found yet.
Upvotes: 1
Reputation: 51411
Is it OAuth 1.0 or 2.0?
It's 1.0. 2.0 is still a draft. I'm not aware of any 2.0 consumers in PHP.
I've used it before. A major downside to it, when compared to other implementations, is that the HTTP adapter is completely opaque. You can't touch it at all. If you need to do anything advanced, like, say, set proxy information, you're totally out of luck.
Consider PEAR's OAuth, which uses HTTP_Request2 as the underlying HTTP adapter, or Zend_Oauth_Consumer, which uses Zend_Http_Client as the underlying HTTP adapter. Both libraries are full-featured and the underlying HTTP adapters are both powerful and useful for all kinds of requests.
Upvotes: 1