Functionality to simplify using LTHN
For more information, please visit https://lt.hn.
PHP 7.3 and later. Should also work with PHP 8.0 but has not been tested.
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
Download the files and include autoload.php
:
<?php
require_once('/path/to/letheanSDP/vendor/autoload.php');
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;
}
All URIs are relative to http://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
VpnApi | startLetheand | GET /letheand/start |
All endpoints do not require authorization.
To run the tests, use:
composer install
vendor/bin/phpunit
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
1.2.2
- Package version:
1.0.0
- Package version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen