PHPackages                             lukezbihlyj/vdf-parser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. lukezbihlyj/vdf-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

lukezbihlyj/vdf-parser
======================

An open-source VDF parser for Valve's proprietary format used in Source games.

1.0(11y ago)57.6k↓100%3[2 issues](https://github.com/lukezbihlyj/vdf-parser/issues)[1 PRs](https://github.com/lukezbihlyj/vdf-parser/pulls)MITPHPPHP &gt;=5.4.0

Since Feb 13Pushed 10y agoCompare

[ Source](https://github.com/lukezbihlyj/vdf-parser)[ Packagist](https://packagist.org/packages/lukezbihlyj/vdf-parser)[ Docs](https://github.com/lukezbihlyj/vdf-parser)[ RSS](/packages/lukezbihlyj-vdf-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

VDF Parser
==========

[](#vdf-parser)

An open-source VDF parser for Valve's proprietary format used in Source games. This package is 100% tested and available for use in any project under the MIT license. The parser currently supports all features of VDF, including:

- Arbitrary whitespace, including tab characters and spaces.
- Comments, which will be ignored during parsing.
- Escaped strings, allowing backslash escaping inside strings for both keys and values.
- Nested arrays, using recursion.

Installation
------------

[](#installation)

### Via Composer

[](#via-composer)

Add the following to your `composer.json` file and run `composer update` to update the dependencies and pull in the new package.

```
"require": {
    "lukezbihlyj/vdf-parser": "~1.0"
}
```

Usage
-----

[](#usage)

### Parsing

[](#parsing)

```
$string =
