- It works!
- Includes SWIG support for compiling these C files into just about any langugage format you could ever want!
Check out the wiki for more information and the readme from the working fork I grabbed this code from.
swig -php -outdir ../dist -o ../dist/bme280_wrap.c bme280.i
gcc `php-config --includes` -fpic -c ../dist/bme280_wrap.c ../bme280.c
gcc -shared bme280_wrap.o bme280.o -o ../dist/bme280.so