PHP code example of gaalferov / php-sdk-wlvpn

1. Go to this page and download the library: Download gaalferov/php-sdk-wlvpn library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

gaalferov / php-sdk-wlvpn example snippets




use GAAlferov\WLVPN\Exception\WLVPNException;
use GAAlferov\WLVPN\VPNClient;
use GuzzleHttp\Exception\GuzzleException;

  $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);

composer