Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fawno/softetherapi-php
PHP API to remote control SoftEther VPN Server
https://github.com/fawno/softetherapi-php
php softether vpn
Last synced: about 3 hours ago
JSON representation
PHP API to remote control SoftEther VPN Server
- Host: GitHub
- URL: https://github.com/fawno/softetherapi-php
- Owner: fawno
- License: mit
- Created: 2018-07-17T06:18:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-24T00:24:32.000Z (over 1 year ago)
- Last Synced: 2024-11-10T12:23:53.560Z (5 days ago)
- Topics: php, softether, vpn
- Language: PHP
- Homepage:
- Size: 97.7 KB
- Stars: 11
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![GitHub license](https://img.shields.io/github/license/fawno/SoftEtherApi-PHP)](https://github.com/fawno/SoftEtherApi-PHP/blob/master/LICENSE)
[![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/fawno/SoftEtherApi-PHP)](https://github.com/fawno/SoftEtherApi-PHP/tags)
[![Packagist](https://img.shields.io/packagist/v/fawno/softether-api)](https://packagist.org/packages/fawno/softether-api)
[![Packagist Downloads](https://img.shields.io/packagist/dt/fawno/softether-api)](https://packagist.org/packages/fawno/softether-api/stats)
[![GitHub issues](https://img.shields.io/github/issues/fawno/SoftEtherApi-PHP)](https://github.com/fawno/SoftEtherApi-PHP/issues)
[![GitHub forks](https://img.shields.io/github/forks/fawno/SoftEtherApi-PHP)](https://github.com/fawno/SoftEtherApi-PHP/network)
[![GitHub stars](https://img.shields.io/github/stars/fawno/SoftEtherApi-PHP)](https://github.com/fawno/SoftEtherApi-PHP/stargazers)# SoftEtherApi-PHP
SoftEther VPN Api for PHPThere 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](https://getcomposer.org):```
composer require fawno/softether-api:@stable
```# How to translate the examples
The C# code```c#
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
```php
$connectResult = $softEther->Connect();
$authResult = $softEther->Authenticate(pw);$user = $softEther->HubApi->CreateUser("testHub", "testUser", "userPw");
echo $user->Valid() ? "Success" : $user->Error;
```