In the root of your project execute the following:
composer require exbil/vpnresellers-php-api
or add this to your composer.json
file:
{
"require": {
"exbil/vpnresellers-php-api": "^1.0"
}
}
Then perform the installation:
$ composer install --no-dev
Search for the official API Documentation here.
You need an API Key for that.
<?php
// Require the autoloader
require_once 'vendor/autoload.php';
// Use the library namespace
use VPNResellersAPI\VPNResellersAPI;
// Then simply pass your API-Token when creating the API client object.
$apiKey = getenv('VPNRESELLERS_API_KEY');
$client = new VPNResellersAPI($apiKey);
// Then you are able to perform a request
var_dump($client->servers()->getServers());
?>