Parse OpenVPN status files using php
- Install using composer:
composer require sh-sh-dev/openvpn-parser
After including composer dependencies in your project, just use the class:
Use Shay3gan\OpenVPN\Parser;
$openvpn = new Parser();
$openvpn->setStatusFile("openvpn-status.log");
print_r($openvpn->parse());