PHPackages                             evilfreelancer/xl2tp-php - 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. evilfreelancer/xl2tp-php

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

evilfreelancer/xl2tp-php
========================

XL2TP configuration manager gives you the ability to work with configuration of your services in OOP style

1.0.1(5y ago)2161MITPHPPHP ^7.2CI failing

Since Apr 9Pushed 5y ago2 watchersCompare

[ Source](https://github.com/EvilFreelancer/xl2tp-php)[ Packagist](https://packagist.org/packages/evilfreelancer/xl2tp-php)[ RSS](/packages/evilfreelancer-xl2tp-php/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (6)Versions (3)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/a71e33fecc9db01159fc7a426243f194e0a20b491365c24f80bbe80c8637f8a2/68747470733a2f2f706f7365722e707567782e6f72672f6576696c667265656c616e6365722f786c3274702d7068702f762f737461626c65)](https://packagist.org/packages/evilfreelancer/xl2tp-php)[![Build Status](https://camo.githubusercontent.com/30b2a036e29c005fd034ea98e78ac7dcdda3eb526658ae4f020e70928452c02a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4576696c467265656c616e6365722f786c3274702d7068702f6261646765732f6275696c642e706e673f623d6d6173746572)](https://travis-ci.org/EvilFreelancer/xl2tp-php)[![Total Downloads](https://camo.githubusercontent.com/e66c7c3975a2f0c681bf2309ca20a76439a74b06838321b2e3bcd6903b2eb513/68747470733a2f2f706f7365722e707567782e6f72672f6576696c667265656c616e6365722f786c3274702d7068702f646f776e6c6f616473)](https://packagist.org/packages/evilfreelancer/xl2tp-php)[![License](https://camo.githubusercontent.com/fb83de5c3cbd95e11337e05c355f052d901dcea5d847bf5447eef1d1c60f72a8/68747470733a2f2f706f7365722e707567782e6f72672f6576696c667265656c616e6365722f786c3274702d7068702f6c6963656e7365)](https://packagist.org/packages/evilfreelancer/xl2tp-php)[![Code Coverage](https://camo.githubusercontent.com/d1fbda7cc46d36f0cd35ee62b0fec8279aca26089a29ee87fa810a20657b0c48/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4576696c467265656c616e6365722f786c3274702d7068702f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/EvilFreelancer/xl2tp-php/?branch=master)[![Scrutinizer CQ](https://camo.githubusercontent.com/1171013c19f408c55ab81f626d655b7898ae1fd5a878451073b990a62e8317dc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6576696c667265656c616e6365722f786c3274702d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/evilfreelancer/xl2tp-php/)

XL2TP configuration manager on PHP
==================================

[](#xl2tp-configuration-manager-on-php)

XL2TP configuration manager gives you ability to work with a configuration of your services in OOP style.

```
composer require evilfreelancer/xl2tp-php

```

How to use
----------

[](#how-to-use)

Script below

```
$obj = new \XL2TP\Config();

$obj->global->port          = 123;
$obj->global->authFile      = '/etc/auth/file';
$obj->global->accessControl = 'yes';

$obj->lns->exclusive = 'yes';
$obj->lns->lac       = 'awesome';
$obj->lns->assignIp  = '192.168.1.1';

// Another way for setting section parameters
$obj->lns()->callRws   = 'yes';
$obj->lns()->challenge = 'no';

$obj->lns('test')->exclusive = 'yes';
$obj->lns('test')->lac       = 'awesome';
$obj->lns('test')->assignIp  = '192.168.1.1';

$obj->lac->redial    = 123;
$obj->lac->maxRedial = 1;
$obj->lac->lns       = 'test';

$obj->lac('awesome')->redial    = 123;
$obj->lac('awesome')->maxRedial = 1;
$obj->lac('awesome')->lns       = 'test';

echo $obj->generate();
```

Will generate following INI configuration

```
[global]
port = 123
auth file = "/etc/auth/file"
access control = "yes"

[lns default]
exclusive = "yes"
lac = "awesome"
assign ip = "192.168.1.1"
call rws = "yes"
challenge = "no"

[lns test]
exclusive = "yes"
lac = "awesome"
assign ip = "192.168.1.1"

[lac default]
redial = 123
max redial = 1
lns = "test"

[lac awesome]
redial = 123
max redial = 1
lns = "test"
```

Links
-----

[](#links)

-
-
-

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.2% 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 ~92 days

Total

2

Last Release

2137d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30aaf0db0441cada5c2d80127a9123e7f6f4091f7faf79d3f13001ef379373f4?d=identicon)[EvilFreelancer](/maintainers/EvilFreelancer)

---

Top Contributors

[![EvilFreelancer](https://avatars.githubusercontent.com/u/9089568?v=4)](https://github.com/EvilFreelancer "EvilFreelancer (30 commits)")[![Compolomus](https://avatars.githubusercontent.com/u/10777258?v=4)](https://github.com/Compolomus "Compolomus (4 commits)")

---

Tags

configuration-managementiniini-parserl2tpl2tpdphpxl2tpxl2tpd

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/evilfreelancer-xl2tp-php/health.svg)

```
[![Health](https://phpackages.com/badges/evilfreelancer-xl2tp-php/health.svg)](https://phpackages.com/packages/evilfreelancer-xl2tp-php)
```

###  Alternatives

[flowframe/laravel-trend

Easily generate model trends

1.1k3.2M33](/packages/flowframe-laravel-trend)[steverobbins/magescan

Scan a Magento application for information

4571.1k](/packages/steverobbins-magescan)[lusitanian/phpmoney

PHP Money Pattern Implementation

124.8k](/packages/lusitanian-phpmoney)

PHPackages © 2026

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