README.md

php-toml

Build

phpize
./configure --enable-toml
make
make install

Generate signature

php build/gen_stub.php

How use it

test.php

<?php

var_dump(parse_toml_file('test.toml'));

run script:

php -d extension=toml.so test.php

output:

array(3) {
  'name' =>
  string(11) ""test toml""
  'block' =>
  array(2) {
    'name' =>
    string(15) ""nested object""
    'value' =>
    string(4) "8900"
  }
  'blocks' =>
  array(2) {
    [0] =>
    array(1) {
      'name' =>
      string(7) ""item1""
    }
    [1] =>
    array(1) {
      'name' =>
      string(7) ""item2""
    }
  }
}
Конвейеры
0 успешных
0 с ошибкой