zedling/php-parse-kv

There is no license information available for the latest version (2.1.2) of this package.

Installs: 19

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/zedling/php-parse-kv

2.1.2 2018-01-24 10:54 UTC

This package is not auto-updated.

Last update: 2025-10-12 11:10:23 UTC


README

Based on a reddit post I Can't find anymore

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