1. Go to this page and download the library: Download openapi/openapi-sdk 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/ */
openapi / openapi-sdk example snippets
use Openapi\OauthClient;
$oauthClient = new OauthClient('username', 'apikey', true); // true for test environment
$scopes = [
'GET:test.imprese.openapi.it/advance',
'POST:test.postontarget.com/fields/country'
];
$result = $oauthClient->createToken($scopes, 3600);
$tokenData = json_decode($result, true);
$token = $tokenData['token'];