exbil / vpnresellers-php-api
A full-featured implementation of the VPNResellers API Client
v3.2
2024-10-16 16:14 UTC
Requires
- php: >=7.2
- ext-json: *
- guzzlehttp/guzzle: ^7.5
Requires (Dev)
- phpunit/phpunit: ^9.5.0
This package is auto-updated.
Last update: 2025-04-26 22:48:09 UTC
README
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()); ?>