PHPackages                             stellarsecurity/stellarsecurity-vpn-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. stellarsecurity/stellarsecurity-vpn-laravel

ActiveLibrary[Security](/categories/security)

stellarsecurity/stellarsecurity-vpn-laravel
===========================================

Enterprise SDK for Stellar VPN integration.

1.0.1(3mo ago)0142proprietaryPHPPHP &gt;=8.1

Since Dec 11Pushed 3mo agoCompare

[ Source](https://github.com/StellarSecurity-Packages/stellarsecurity-vpn-laravel)[ Packagist](https://packagist.org/packages/stellarsecurity/stellarsecurity-vpn-laravel)[ RSS](/packages/stellarsecurity-stellarsecurity-vpn-laravel/feed)WikiDiscussions main Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

StellarSecurity Laravel VPN SDK
===============================

[](#stellarsecurity-laravel-vpn-sdk)

This package provides a Laravel-friendly SDK for integrating with the Stellar VPN backend from any Stellar UI API service.

Installation
------------

[](#installation)

Add the package to your project (after publishing it to your chosen package registry):

```
composer require stellarsecurity/stellarsecurity-laravel-vpn
```

If you are not using Laravel package auto-discovery, register the service provider manually in `config/app.php`:

```
'providers' => [
    // ...
    StellarSecurity\LaravelVpn\StellarVpnServiceProvider::class,
];
```

Configuration
-------------

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --tag=stellar-vpn-config
```

This will create `config/stellar_vpn.php`.

Environment variables used:

```
STELLAR_VPN_BASE_URL=https://stellarvpnapiprod.azurewebsites.net/api
STELLAR_VPN_USERNAME=StellarVpnApiProd
STELLAR_VPN_PASSWORD=your-strong-password-here
STELLAR_VPN_TIMEOUT=10
```

> Note: Set the username and password to the Basic Auth credentials used by the Stellar VPN API.

Available Methods
-----------------

[](#available-methods)

All core operations are exposed through `StellarSecurity\LaravelVpn\Services\VpnServerClient`.

You can type-hint it in your controllers or services and let Laravel inject it:

```
use StellarSecurity\LaravelVpn\Services\VpnServerClient;

class VpnController
{
    public function __construct(private VpnServerClient $client) {}

    public function servers()
    {
        $servers = $client->listServers();

        return response()->json($servers);
    }
}
```

### 1. List VPN Servers

[](#1-list-vpn-servers)

```
$servers = $client->listServers();
```

- Calls: `GET /v1/vpnservercontroller/list`
- Returns: `array` of server entries, e.g.:

```
[
    [
        'id'            => 'eu-1',
        'name'          => 'Switzerland – Zurich',
        'country'       => 'CH',
        'lat'           => 47.3769,
        'lon'           => 8.5417,
        'protocols'     => ['udp', 'tcp'],
        'hostname'      => 'ch-zurich-1.stellarsecurity.com',
        'config_url'    => 'https://cdn.stellarsecurity.com/ovpn/eu-1.ovpn',
        'config_sha256' => '...',
    ],
    // ...
]
```

### 2. Issue or Fetch VPN Credentials

[](#2-issue-or-fetch-vpn-credentials)

```
$payload = $client->issueCredentials($userId, $deviceId);
```

- Calls: `POST /v1/vpncredentialcontroller/credentials`
- Body:

```
[
    'user_id'   => 123,
    'device_id' => 'some-device-id',
]
```

- Returns a response array from the API, typically:

```
[
    'response_code'    => 200,
    'response_message' => 'OK',
    'data'             => [
        'username' => 'stvpn_xxx',
        'password' => 'plain_random_password_or_null',
    ],
]
```

### 3. Revoke Credentials for a Single Device

[](#3-revoke-credentials-for-a-single-device)

```
$success = $client->resetDevice($userId, $deviceId);
```

- Calls: `POST /v1/vpncredentialcontroller/reset`
- Returns: `true` if `response_code === 200`, otherwise `false`.

### 4. Revoke ALL Credentials for a User

[](#4-revoke-all-credentials-for-a-user)

```
$success = $client->resetAll($userId);
```

- Calls: `POST /v1/vpncredentialcontroller/reset-all`
- Returns: `true` if `response_code === 200`, otherwise `false`.

Example Controller
------------------

[](#example-controller)

```
use StellarSecurity\LaravelVpn\Services\VpnServerClient;

class StellarVpnController
{
    public function __construct(private VpnServerClient $vpnClient) {}

    public function serverList()
    {
        return response()->json($this->vpnClient->listServers());
    }

    public function credentials()
    {
        $userId   = auth()->id();
        $deviceId = request()->input('device_id');

        $response = $this->vpnClient->issueCredentials($userId, $deviceId);

        return response()->json($response);
    }
}
```

Notes
-----

[](#notes)

- All calls use HTTP Basic Auth against the Stellar VPN API.
- Errors from the remote API should be handled at the UI API level (e.g. logging, retries, custom HTTP responses).

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance82

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~114 days

Total

2

Last Release

90d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/150491881?v=4)[Bob](/maintainers/stellar-security-os)[@stellar-security-os](https://github.com/stellar-security-os)

---

Top Contributors

[![bleko1234](https://avatars.githubusercontent.com/u/14978903?v=4)](https://github.com/bleko1234 "bleko1234 (2 commits)")

### Embed Badge

![Health badge](/badges/stellarsecurity-stellarsecurity-vpn-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/stellarsecurity-stellarsecurity-vpn-laravel/health.svg)](https://phpackages.com/packages/stellarsecurity-stellarsecurity-vpn-laravel)
```

###  Alternatives

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.7M143](/packages/mews-purifier)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24820.0k37](/packages/paragonie-ecc)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
