hindy / social_auth
0.3.1
2016-08-05 12:32 UTC
Requires
- php: >=5.4
Requires (Dev)
- phpunit/dbunit: 1.3.1
- phpunit/php-invoker: 1.1.3
- phpunit/phpunit: 3.7.32
- phpunit/phpunit-selenium: 1.3.3
- phpunit/phpunit-story: 1.0.2
- satooshi/php-coveralls: dev-master
This package is not auto-updated.
Last update: 2025-01-13 14:49:53 UTC
README
Authorize users with your application using multiple OAuth 1/2 providers.
Supported Providers
- Dropbox
- Flickr
- Tumblr
- UbuntuOne
- Vimeo
- Appnet
- Foursquare
- GitHub
- Mailchimp
- Mailru
- PayPal
- Soundcloud
- Vkontakte
- Windows Live
- Yandex
- YouTube
- Odnoklassniki
Usage Example
In this example we will authenticate the user using Twitter.
qwe
Calling OAuth 1 / 2 APIs using Guzzle
You can also use this package to make calls to your respective APIs using Guzzle.
$client = new Mindy\SocialAuth\OAuthClient('http://api.twitter.com/1.1'); $client->setUserTokens($provider->getUserTokens()); echo $client->get('statuses/mentions_timeline.json')->send();
This example should show your Twitter mentions from the API along with the headers
$client = new \OAuth2\Client('https://graph.facebook.com'); $client->setUserTokens($oauth->getUserTokens()); echo $client->get('me')->send();
This example should show your Facebook profile from the API along with the headers
TODO
- OpenID