Is there an OAuth consumer library for PHP, that ideally can be used for Google's API?
Asked
Active
Viewed 6,774 times
10
-
google adwords API examples pages, gives you the suggested download url – Saic Siquot Jul 13 '11 at 20:59
3 Answers
4
Google offers their own PHP SDK using OAuth2.
Check it out at: http://code.google.com/p/google-api-php-client/wiki/OAuth2

sagi
- 5,619
- 1
- 30
- 31
-
1It should be noted that the source on Google code is a bit dated right now. Take a look at github, there are serveral forks like https://github.com/quizlet/oauth2-php which continue the development at a higher pace. They even got limited support for newer drafts like draft 16, 18 and 20. They also refactored a lot of code so that programming against this library is a bit easier. – Jens Kohl Aug 05 '11 at 20:44
-
Since DASKAjA posted the Google Code library has been updated. So check it out for yourself if you want to see the current status. – Benjamin Atkin Oct 22 '11 at 23:00
1
Try this one: https://github.com/vznet/oauth_2.0_client_php. It claims it uses the draft 10 of the current OAuth 2.0 specification.

Dmytro Zavalkin
- 5,265
- 1
- 30
- 34
0
By checking github a bit we found this one: https://github.com/adoy/PHP-OAuth2

NetworkSys Co. Ltd
- 156
- 2
- 16