1. Go to this page and download the library: Download logicly/easy-oauth-client library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
logicly / easy-oauth-client example snippets
use Logicly\EasyOAuthClient\Client;
// ...
$oAuthClient = new Client("providername");
// Returns array defined in config
$response = $oAuthClient->getToken($code);
//Returns array defined in config
$response = $oAuthClient->getInfo($accesstoken);
//Returns array defined in config
$response = $oAuthClient->refreshToken($refreshtoken);