#php #gldf #json #extension #format #target #general

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

#4 in #gldf

23 downloads per month

GPL-3.0-or-later

340KB
2K 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
~144K SLoC