1. Go to this page and download the library: Download werk365/laraveloauthclient 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/ */
werk365 / laraveloauthclient example snippets
use Werk365\LaravelOAuthClient\LaravelOAuthClient as OAuth;
// ...
$oauth = new OAuth("vendorname");
// Returns array defined in config
$response = $oauth->getToken($code);
//Returns array defined in config
$response = $oauth->getInfo($accesstoken);
//Returns array defined in config
$response = $oauth->refreshToken($refreshtoken);