#php #gldf #json #extension #format #lighting #target

gldf_rs_php

GLDF (General Lighting Data Format) parser and writer for Rust, specifically for the Rust/WASM target as such designed for JSON format

1 unstable release

0.2.0 Sep 1, 2023

#27 in #lighting

GPL-3.0-or-later

245KB
2.5K SLoC

Contains (Zip file, 33KB) tests/data/test.gldf

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 
1

Dependencies

~4.5–7.5MB
~152K SLoC