2017 © Pedro Peláez
 

library oauth-client

oauth2.0 client

image

xxtime/oauth-client

oauth2.0 client

  • Tuesday, November 21, 2017
  • by xxtime
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Oauth-client

Oauth-client is use for the third-part account login verify on the backend server.
It support Google, Facebook, Weixin, Weibo etc., (*1)

Install

composer require xxtime/oauth-client

How to use it

$id = '{Google account id}';
$token = '{Google login account token}';
$option = [
    'clientId' => '{Google app id}'
];
try {
    $oauth = new OauthAdaptor('google', $option);
    $user = $oauth->verify($id, $token);
    print_r($user);
} catch (\Exception $e) {
    echo $e->getMessage();
}

The Versions

21/11 2017

dev-master

9999999-dev https://github.com/xxtime

oauth2.0 client

  Sources   Download

The Requires

 

21/11 2017

1.0.0

1.0.0.0 https://github.com/xxtime

oauth2.0 client

  Sources   Download

The Requires