Skip to content

Latest commit

 

History

History
102 lines (68 loc) · 2.13 KB

README.md

File metadata and controls

102 lines (68 loc) · 2.13 KB

letheanSDP

Functionality to simplify using LTHN

For more information, please visit https://lt.hn.

Installation & Usage

Requirements

PHP 7.3 and later. Should also work with PHP 8.0 but has not been tested.

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/LetheanMovement/sdp-api-php.git"
    }
  ],
  "require": {
    "LetheanMovement/sdp-api-php": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/letheanSDP/vendor/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');




$apiInstance = new OpenAPI\Client\Api\VpnApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$data_dir = 'data_dir_example'; // string | Returns the binary version
$version = True; // bool | Returns the binary version

try {
    $apiInstance->startLetheand($data_dir, $version);
} catch (Exception $e) {
    echo 'Exception when calling VpnApi->startLetheand: ', $e->getMessage(), PHP_EOL;
}

API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
VpnApi startLetheand GET /letheand/start

Models

Authorization

All endpoints do not require authorization.

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

[email protected]

About this package

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: 1.2.2
    • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen