2017 © Pedro Peláez
 

library php-parse-kv

image

zedling/php-parse-kv

  • Wednesday, January 24, 2018
  • by zedling
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Parse Kv files to array

Based on a reddit post I Can't find anymore, (*1)

Install: composer require zedling/php-parse-kv, (*2)

Usage:, (*3)

<?php

use Zedling\DotaKV\Parser;

$parser = new Parser();

$array = $parser->load(files_get_contents("link_to_file"));

print_r($array);

Changes:, (*4)

  • 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

The Versions

24/01 2018

dev-master

9999999-dev

  Sources   Download

by Avatar zedling

kv dota dota2

24/01 2018

2.1.2

2.1.2.0

  Sources   Download

by Avatar zedling

kv dota dota2

13/10 2017

2.1.1

2.1.1.0

  Sources   Download

by Avatar zedling

kv dota dota2

11/10 2017

2.1

2.1.0.0

  Sources   Download

by Avatar zedling

kv dota dota2

11/10 2017

2.0

2.0.0.0

  Sources   Download

by Avatar zedling

kv dota dota2

11/10 2017

1.0.1

1.0.1.0

  Sources   Download

by Avatar zedling

kv dota dota2

11/10 2017

1.0

1.0.0.0

  Sources   Download

by Avatar zedling

kv dota dota2