PHP 8.1 FFI binding to several nothings/stb libraries.
nothings/stb is a cool collection of C/C++ single file public domain libraries.
STB-php-ffi is a binding and a wrapper to :
STB:: can be used to call any included stb API :
STB::stbi_*: API fromstb_image.handstb_image_write.hSTB::stbir_*: API fromstb_image_resize.hSTB::stbrp_*: API fromstb_rect_pack.hSTB::stbtt_*: API fromstb_truetype.hSTB::stb_vorbis_*: API fromstb_vorbis.c
STBI::* is a shortcut to both STB::stbi_* and to STB::stbir_* ; it also contains their constants and helpers.
TTF::* is a shortcut to STB::stbtt_*, and also contains dedicated constants and helpers.
Vorbis::* is a shortcut to STB::stb_vorbis_* and contains dedicated constants and helpers.
Credits :
- the
test.oggfile is converted from "Silly Intro" by Alexander Nakarada