1. Go to this page and download the library: Download contabo/contabo-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/ */
contabo / contabo-sdk example snippets
use Contabo\Auth\Credentials;
use Contabo\ContaboClient;
$client = ContaboClient::fromCredentials(new Credentials(
clientId: getenv('CONTABO_CLIENT_ID'),
clientSecret: getenv('CONTABO_CLIENT_SECRET'),
apiUser: getenv('CONTABO_API_USER'),
apiPassword: getenv('CONTABO_API_PASSWORD'),
));
$instances = $client->instances()->retrieveInstancesList();
use Contabo\Laravel\Facades\Contabo;
$images = Contabo::images()->listImages();