https://github.com/gaalferov/php-sdk-wlvpn
PHP library for White Label VPN API (WLVPN)
https://github.com/gaalferov/php-sdk-wlvpn
Last synced: 3 months ago
JSON representation
PHP library for White Label VPN API (WLVPN)
- Host: GitHub
- URL: https://github.com/gaalferov/php-sdk-wlvpn
- Owner: gaalferov
- License: mit
- Created: 2021-03-26T13:58:52.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-06T14:40:43.000Z (about 4 years ago)
- Last Synced: 2025-01-01T23:27:32.180Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
```