This is a repository showing some use cases of PHP FFI.
Examples in this repository:
- Game Boy Emulator
- Game Boy Emulator with SDL2 rendering
- GTK3 window with a button
- Calling a function from .class Java file
- Modifying the PHP Core to auto inject PHP Open Tag
- Simple printf example
- Creating window and rendering pixels with SDL2
- SNES Emulator
- SNES Emulator with SDL2 rendering
- text-to-speech using Mac library
Other repositories about PHP FFI:
- DBus access via FFI and PHP 7.4 POC
- Driving webview using PHP 7.4 FFI
- PHP wrapper for libsass using FFI
- PHP TensorFlow Binding
- FFIMe
- A compiler. For PHP
- PHP Webcam
- Pure PHP Kafka Client library based on php7.4-dev, ffi and librdkafka
- PHP OpenGL (SDL) Demo
- SDL Image bindings for PHP
- PHP-IUP Gui ToolKit using FFI
- Shooter game written using PHP 7.4 FFI
PHP FFI tricks: