Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/gaalferov/php-sdk-wlvpn
- Owner: gaalferov
- License: mit
- Created: 2021-03-26T13:58:52.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-06T14:40:43.000Z (over 3 years ago)
- Last Synced: 2024-12-11T01:39:46.245Z (23 days 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);
```