EvilFreelancer/openvpn-php

View on GitHub
examples/import.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
require_once __DIR__ . '/../vendor/autoload.php';

// Import OpenVPN config file
$import = new \OpenVPN\Import('server.conf');
print_r($import);

// Parse configuration
$config = $import->parse();
print_r($config);

// Generate config by options
echo $config->generate();