Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gaalferov/php-sdk-wlvpn

PHP library for White Label VPN API (WLVPN)
https://github.com/gaalferov/php-sdk-wlvpn

Last synced: 1 day ago
JSON representation

PHP library for White Label VPN API (WLVPN)

Awesome Lists containing this project

README

        

# sdk-wlvpn
Library for White Label VPN API (WLVPN) v2

# Usage
```
composer require gaalferov/php-sdk-wlvpn
```

# Available actions
```
** Accounts
isUsernameExists
getAccountByUsername
getAccountByCustomerId
createAccount
updateAccount
usageReportByAccount
createAccountLimitation
updateAccountLimitation
deleteAccountLimitation
** Servers
getServers
```

Init new aplication with your secret and default group ID
```php
getServers();
} catch (GuzzleException $e) {
$response = $e->getResponse();
var_dump($e->getMessage());
var_dump($response->getStatusCode());
var_dump($response->getBody()->getContents());
} catch (WLVPNException $e) {
var_dump($e->getMessage());
}

var_dump($res);
```