Format: https://developer.valvesoftware.com/wiki/KeyValues
VDF may contain comments. However, they are not preserved during decoding.
Add the dependency:
composer require pusha/vdf-parser
use Pusha\VDFParser\VDF;
VDF::decode();
VDF::encode();
See license file.