PHP code example of lukezbihlyj / vdf-parser
1. Go to this page and download the library: Download lukezbihlyj/vdf-parser library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lukezbihlyj / vdf-parser example snippets
$string = <<<VDF
{
"key" "value"
}
VDF;
$parser = new VdfParser\Parser;
$result = $parser->parse($string);
//
// $result = [
// 'key' => 'value'
// ]
//