PHPackages                             paranic/openvpn - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. paranic/openvpn

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

paranic/openvpn
===============

PHP OpenVPN config generator

v1.0.3(5y ago)33443[1 PRs](https://github.com/paranic/openvpn/pulls)MITPHP

Since Jan 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/paranic/openvpn)[ Packagist](https://packagist.org/packages/paranic/openvpn)[ RSS](/packages/paranic-openvpn/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (5)Used By (0)

PHP Openvpn
===========

[](#php-openvpn)

A PHP library to generate openvpn keys and configurations.

Based on security considerations taken from:

-
-

New in 2020

-
-

Notes
-----

[](#notes)

works on debian 10 jessie with openvpn package installed.

```
apt-get install openvpn

```

Usage
-----

[](#usage)

### Create Instance

[](#create-instance)

After including the library with autoloader or manualy, you can initiate and configure the class.

```
$openvpn = new Paranic\Openvpn();
$openvpn->server_address = '127.0.0.1';
$openvpn->server_port = '1194';
$openvpn->protocol = 'udp';
$openvpn->easy_rsa_folder = '/tmp/easy-rsa';
$openvpn->network = '10.0.0.0';
$openvpn->netmask = '255.255.255.0';

```

All keys generated will be stored in the easy\_rsa/configs folder.

### Setup easy-rsa

[](#setup-easy-rsa)

```
$openvpn->setup();

```

This is going to take some time, creating required keys for the first time.

### Generate Server Configuration

[](#generate-server-configuration)

```
$openvpn->create_server();

```

Again your server configuration is stored at easy\_rsa\_folder under the keys\_packed subfolder.

### Generate Client Configuration

[](#generate-client-configuration)

```
$openvpn->create_client('sample_client_1');

```

You can create many clients and get theyr configuration in the keys\_packed folder, including a all in one inline client config file.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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 ~661 days

Total

4

Last Release

1826d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/156193?v=4)[paranic](/maintainers/paranic)[@paranic](https://github.com/paranic)

---

Top Contributors

[![paranic](https://avatars.githubusercontent.com/u/156193?v=4)](https://github.com/paranic "paranic (6 commits)")

---

Tags

phpsecureopenvpneasy-rsa

### Embed Badge

![Health badge](/badges/paranic-openvpn/health.svg)

```
[![Health](https://phpackages.com/badges/paranic-openvpn/health.svg)](https://phpackages.com/packages/paranic-openvpn)
```

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21623.4k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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