PHPackages                             harlam/openvpn-auth - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. harlam/openvpn-auth

ActiveProject[Authentication &amp; Authorization](/categories/authentication)

harlam/openvpn-auth
===================

v1.0.3(6y ago)281MITPHPPHP &gt;=7.1

Since Aug 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/harlam/openvpn-auth)[ Packagist](https://packagist.org/packages/harlam/openvpn-auth)[ RSS](/packages/harlam-openvpn-auth/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

openvpn-auth
------------

[](#openvpn-auth)

OpenVPN authentication script

Install
-------

[](#install)

```
composer create-project harlam/openvpn-auth
```

Configure
---------

[](#configure)

- Edit `container.php` and `.env`
- Create tables (if use database instead files)

```
-- OpenVPN users
create table users
(
  id         bigserial primary key,
  username   varchar(255) not null,
  password   varchar(255) not null,
  is_active  boolean      not null       default false,
  created_at timestamp without time zone default now()
);

create index idx_users_username on users (username);
create index idx_users_is_active on users (is_active);
create index idx_users_created_at on users (created_at);

-- Auth logs
create table auth_log
(
  id         bigserial primary key,
  username   varchar(255)                default null,
  ip_addr    varchar(15)                 default null,
  is_success boolean not null,
  details    varchar(1024),
  created_at timestamp without time zone default now()
);

create index idx_auth_log_username on auth_log (username);
create index idx_auth_log_ip_addr on auth_log (ip_addr);
create index idx_auth_log_is_success on auth_log (is_success);
create index idx_auth_log_created_at on auth_log (created_at);

```

- Install kherge/box, (edit `box.json`) and build phar ()

`php box.phar build`

- Move `openvpn-auth.phar` and `.env` to new destination

Use
---

[](#use)

In OpenVPN server config:

```
...
auth-user-pass-verify "/etc/openvpn-auth/openvpn-auth.phar" via-env
...

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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

Total

3

Last Release

2231d ago

Major Versions

v1.0.3 → v2.x-dev2020-04-04

PHP version history (2 changes)v1.0.2PHP &gt;=7.1

v2.x-devPHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/3aa2460c263fee25d06e4b7263be903a9075313fb164a43cd244e31a1d955367?d=identicon)[harlam](/maintainers/harlam)

---

Top Contributors

[![harlam](https://avatars.githubusercontent.com/u/8457029?v=4)](https://github.com/harlam "harlam (10 commits)")

### Embed Badge

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

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)

PHPackages © 2026

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