1. Go to this page and download the library: Download ruwork/skolkovo-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/ */
ruwork / skolkovo-client example snippets
declare(strict_types=1);
use Ruwork\SkolkovoClient\SkolkovoClient;
use Ruwork\SkolkovoClient\TokenStorage\FileTokenStorage;
use Ruwork\SkolkovoClient\Definition\SkolkovoDefinition;
$tokenStorage = new FileTokenStorage('path/to/token.json');
$client = new SkolkovoClient([
'client_id' => 'client_id',
'client_secret' => 'client_secret',
], [], new SkolkovoDefinition($tokenStorage));