Skip to content

Exbil/vpnresellers-php-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💾 VPNResellers PHP API Client

visitors

Getting Started

Requirements

⚒️ Install

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

📑 Usage

Search for the official API Documentation here.
You need an API Key for that.

🗃️ Basic

<?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());
?>