10

Is there an OAuth consumer library for PHP, that ideally can be used for Google's API?

John Bachir
  • 22,495
  • 29
  • 154
  • 227
Shan
  • 2,822
  • 9
  • 40
  • 61

3 Answers3

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
  • 1
    It 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