gldf-rs-php

WIP php extenson and bindings for the gldf-rs rust library

create the library:

cargo build --release

copy the library to the PECL extension directory: on MacOS wit Homebrew: cp target/release/libgldf_rs_php.dylib /opt/homebrew/lib/php/pecl/20220829/libgldf_rs_php.so

add / enable the extension in php.ini:

extension=/opt/homebrew/lib/php/pecl/20220829/libgldf_php.so path = "tests/data/test.gldf"; $xml = gldftoxml($gldfpath); $json = gldftojson($gldfpath); $xml2 = xmlfrom_json($json); echo $xml === $xml2; ``` => 1