exbil/vpnresellers-php-api

A full-featured implementation of the VPNResellers API Client

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

pkg:composer/exbil/vpnresellers-php-api

v3.2 2024-10-16 16:14 UTC

This package is auto-updated.

Last update: 2025-09-26 23:55:25 UTC


README

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