Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
win_glfw_php8.4_nts_x64.zip | 2025-09-29 | 798.2 kB | |
win_glfw_php8.4_ts_x64.zip | 2025-09-29 | 798.3 kB | |
win_glfw_php8.3_ts_x64.zip | 2025-09-29 | 789.4 kB | |
win_glfw_php8.2_ts_x64.zip | 2025-09-29 | 788.7 kB | |
win_glfw_php8.3_nts_x64.zip | 2025-09-29 | 789.0 kB | |
win_glfw_php8.1_ts_x64.zip | 2025-09-29 | 788.0 kB | |
win_glfw_php8.2_nts_x64.zip | 2025-09-29 | 788.4 kB | |
win_glfw_php8.1_nts_x64.zip | 2025-09-29 | 787.9 kB | |
README.md | 2025-09-29 | 1.6 kB | |
v2.3.0 Audio Support! source code.tar.gz | 2025-09-29 | 2.8 MB | |
v2.3.0 Audio Support! source code.zip | 2025-09-29 | 3.3 MB | |
Totals: 11 Items | 12.4 MB | 4 |
What's Changed
- We now officially support PHP 8.4.
- We now support Audio!
- We now support
glDrawElements
for element based rendering. - You can now upload buffers of all types to the GPU.
- We have added an experimental .vox (MagicaVoxel) file parser.
Audio Support
You can now manage and play audio / sounds inside your php-glfw context.
- Master and per sound volume control
- Pitch control
- Panning support
- Raw data extraction
- Seeking support
- 3D Audio support, sounds can have a position and velocity in 3D space
- Volume fade support
Example Code
Basic usage of the sound engine is incredibly simple.
:::php
// start an audio engine
$audioEngine = new \GL\Audio\Engine();
// load piece of sound from disk
$music = $audioEngine->soundFromDisk(__DIR__ . '/my_music.mp3');
// play the music
$music->play();
Quick Demo Video:
https://github.com/user-attachments/assets/57fdd2f8-6398-4c82-a959-daf2609674c0
Voxel file support (Experimental)
We now support reading MagicaVoxel .vox
files, to easily import and render voxel models.
This is very experimental and still subject to change.
PR's
- Audio Support by @mario-deluna in https://github.com/mario-deluna/php-glfw/pull/37
Full Changelog: https://github.com/mario-deluna/php-glfw/compare/v2.2.1...v2.3.0