fawno / softether-api
SoftEther VPN Api for PHP
Installs: 75
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 3
Forks: 4
Open Issues: 0
pkg:composer/fawno/softether-api
Requires
- php: >=7.2
README
SoftEtherApi-PHP
SoftEther VPN Api for PHP
There are still some issues as i only use the c# project activly but not this port. Just open a ticket.
For C# examples please see: https://github.com/connLAN/SoftEtherApi
Installation using Composer
You can install this plugin into your application using composer:
composer require fawno/softether-api:@stable
How to translate the examples
The C# code
var connectResult = softEther.Connect(); var authResult = softEther.Authenticate(pw); var user = softEther.HubApi.CreateUser("testHub", "testUser", "userPw"); Console.WriteLine(user.Valid() ? "Success" : user.Error.ToString());
The corresponding PHP code
$connectResult = $softEther->Connect(); $authResult = $softEther->Authenticate(pw); $user = $softEther->HubApi->CreateUser("testHub", "testUser", "userPw"); echo $user->Valid() ? "Success" : $user->Error;