1. Go to this page and download the library: Download resnext/solaris-api-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/ */
resnext / solaris-api-client example snippets
$httpClient = new GuzzleHttp\Client([
GuzzleHttp\RequestOptions::CONNECT_TIMEOUT => 2,
]);
$apiClient = new \Solaris\ApiClient(<API_URL>, <API_USERNAME>, <API_PASSWORD>, [
'httpClient' => $httpClient,
]);