Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
added changlog, install and usage example
  • Loading branch information
zelding authored Oct 16, 2017
1 parent d9cca4b commit c99e053
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
Based on:
=========
Parse Kv files to array
=======================

https://github.com/chrisinajar/parse-kv
Based on a reddit post I Can't find anymore

v1

Install:
`composer require zedling/php-parse-kv`

Usage:
```
<?php
use Zedling\DotaKV\Parser;
$parser = new Parser();
$array = $parser->load(files_get_contents("link_to_file"));
print_r($array);
```

Changes:

- 2.1.1: added parsing values as array if they are `;` separated
- 2.1: added parsing values as array if they are space separated
- 2.0: switched implememntation to use `token_get_all`

0 comments on commit c99e053

Please sign in to comment.