{"id":17989485,"url":"https://github.com/evilfreelancer/xl2tp-php","last_synced_at":"2025-11-03T17:01:47.815Z","repository":{"id":56980182,"uuid":"253582419","full_name":"EvilFreelancer/xl2tp-php","owner":"EvilFreelancer","description":"XL2TP configuration manager written on PHP","archived":false,"fork":false,"pushed_at":"2020-07-10T23:36:13.000Z","size":48,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T02:45:18.578Z","etag":null,"topics":["configuration-management","ini","ini-parser","l2tp","l2tpd","php","xl2tp","xl2tpd"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EvilFreelancer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-06T18:27:03.000Z","updated_at":"2020-07-12T21:02:47.000Z","dependencies_parsed_at":"2022-08-21T11:50:34.677Z","dependency_job_id":null,"html_url":"https://github.com/EvilFreelancer/xl2tp-php","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilFreelancer%2Fxl2tp-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilFreelancer%2Fxl2tp-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilFreelancer%2Fxl2tp-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilFreelancer%2Fxl2tp-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EvilFreelancer","download_url":"https://codeload.github.com/EvilFreelancer/xl2tp-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247117749,"owners_count":20886439,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["configuration-management","ini","ini-parser","l2tp","l2tpd","php","xl2tp","xl2tpd"],"created_at":"2024-10-29T19:14:47.757Z","updated_at":"2025-11-03T17:01:47.811Z","avatar_url":"https://github.com/EvilFreelancer.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://poser.pugx.org/evilfreelancer/xl2tp-php/v/stable)](https://packagist.org/packages/evilfreelancer/xl2tp-php)\n[![Build Status](https://scrutinizer-ci.com/g/EvilFreelancer/xl2tp-php/badges/build.png?b=master)](https://travis-ci.org/EvilFreelancer/xl2tp-php)\n[![Total Downloads](https://poser.pugx.org/evilfreelancer/xl2tp-php/downloads)](https://packagist.org/packages/evilfreelancer/xl2tp-php)\n[![License](https://poser.pugx.org/evilfreelancer/xl2tp-php/license)](https://packagist.org/packages/evilfreelancer/xl2tp-php)\n[![Code Coverage](https://scrutinizer-ci.com/g/EvilFreelancer/xl2tp-php/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/EvilFreelancer/xl2tp-php/?branch=master)\n[![Scrutinizer CQ](https://scrutinizer-ci.com/g/evilfreelancer/xl2tp-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/evilfreelancer/xl2tp-php/)\n\n# XL2TP configuration manager on PHP \n\nXL2TP configuration manager gives you ability to work with a configuration of your services in OOP style.\n\n    composer require evilfreelancer/xl2tp-php\n\n## How to use\n\nScript below\n\n```php\n$obj = new \\XL2TP\\Config();\n\n$obj-\u003eglobal-\u003eport          = 123;\n$obj-\u003eglobal-\u003eauthFile      = '/etc/auth/file';\n$obj-\u003eglobal-\u003eaccessControl = 'yes';\n\n$obj-\u003elns-\u003eexclusive = 'yes';\n$obj-\u003elns-\u003elac       = 'awesome';\n$obj-\u003elns-\u003eassignIp  = '192.168.1.1';\n\n// Another way for setting section parameters\n$obj-\u003elns()-\u003ecallRws   = 'yes';\n$obj-\u003elns()-\u003echallenge = 'no';\n\n$obj-\u003elns('test')-\u003eexclusive = 'yes';\n$obj-\u003elns('test')-\u003elac       = 'awesome';\n$obj-\u003elns('test')-\u003eassignIp  = '192.168.1.1';\n\n$obj-\u003elac-\u003eredial    = 123;\n$obj-\u003elac-\u003emaxRedial = 1;\n$obj-\u003elac-\u003elns       = 'test';\n\n$obj-\u003elac('awesome')-\u003eredial    = 123;\n$obj-\u003elac('awesome')-\u003emaxRedial = 1;\n$obj-\u003elac('awesome')-\u003elns       = 'test';\n\necho $obj-\u003egenerate();\n```\n\nWill generate following INI configuration\n\n```ini\n[global]\nport = 123\nauth file = \"/etc/auth/file\"\naccess control = \"yes\"\n\n[lns default]\nexclusive = \"yes\"\nlac = \"awesome\"\nassign ip = \"192.168.1.1\"\ncall rws = \"yes\"\nchallenge = \"no\"\n\n[lns test]\nexclusive = \"yes\"\nlac = \"awesome\"\nassign ip = \"192.168.1.1\"\n\n[lac default]\nredial = 123\nmax redial = 1\nlns = \"test\"\n\n[lac awesome]\nredial = 123\nmax redial = 1\nlns = \"test\"\n```\n\n## Links\n\n* https://linux.die.net/man/5/xl2tpd.conf\n* https://linux.die.net/man/8/xl2tpd\n* https://github.com/xelerance/xl2tpd/blob/master/examples/xl2tpd.conf\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilfreelancer%2Fxl2tp-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevilfreelancer%2Fxl2tp-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilfreelancer%2Fxl2tp-php/lists"}