vexura / vpnresellers-api
A full-featured implementation of the VPNResellers API
1.0.8
2024-09-25 20:39 UTC
Requires
- php: >=7.2
- ext-json: *
- guzzlehttp/guzzle: ^7.5
Requires (Dev)
- phpunit/phpunit: ^9.5.0
README
This PHP 7.2+ library allows you to communicate with the VPNResellers-API.
You can find the full API documentation here!
Getting Started
Recommended installation is using Composer!
In the root of your project execute the following:
$ composer require vexura/vpnresellers-api
Or add this to your composer.json
file:
{ "require": { "vexura/vpnresellers-api": "^1.0" } }
Then perform the installation:
$ composer install --no-dev
Examples
Creating the VPNResellersAPI main object:
<?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. $client = new VPNResellersAPI('API-Token'); // Then you are able to perform a request var_dump($client->servers()->getServers()); ?>