1. Go to this page and download the library: Download janmuran/speedweb-api-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/ */
use JanMuran\SpeedwebApiSdk\ApiClient;
use JanMuran\SpeedwebApiSdk\ClientConfig;
$client = new ApiClient(ClientConfig::forHost('swk_xxxxxxxxxxxxxxxx', 'api.smartweb.eu'));
use JanMuran\SpeedwebApiSdk\ApiClient;
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
$logger = new Logger('speedweb-sdk');
$logger->pushHandler(new StreamHandler('php://stderr'));
$client = ApiClient::create('swk_xxxxxxxxxxxxxxxx', [
'loggingEnabled' => true,
'logger' => $logger,
]);