rwellens / nagios-cfg
Manipulate nagios .cfg
v1.0.2
2018-12-06 09:21 UTC
Requires
- php: >=7.1.3
- phpunit/phpunit: ^7.4
Requires (Dev)
- filp/whoops: ^2.3
- phpro/grumphp: ^0.14.2
- squizlabs/php_codesniffer: ^3.3
This package is auto-updated.
Last update: 2024-12-07 00:50:46 UTC
README
$converter = new \NagiosCfg\Converter();
$file = 'tests/_data/cfg/test_nagios2.cfg';
$array = $converter->cfgFileToArray($file);
$cfgString = $converter->arrayToCfgString($array);