Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gabrielrcouto/awesome-php-ffi

PHP FFI examples and use cases
https://github.com/gabrielrcouto/awesome-php-ffi

List: awesome-php-ffi

awesome ffi php74

Last synced: 2 months ago
JSON representation

PHP FFI examples and use cases

Awesome Lists containing this project

README

        

# Awesome PHP FFI

[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](http://gabrielrcouto.mit-license.org/)

This is a repository showing some use cases of [PHP FFI](https://wiki.php.net/rfc/ffi).

Examples in this repository:

- [Game Boy Emulator](gameboy)
- [Game Boy Emulator with SDL2 rendering](gameboy-sdl)
- [GTK3 window with a button](gtk3)
- [Calling a function from .class Java file](java-itaucripto)
- [Modifying the PHP Core to auto inject PHP Open Tag](php-plus)
- [Simple printf example](printf)
- [Creating window and rendering pixels with SDL2](sdl)
- [SNES Emulator](snes)
- [SNES Emulator with SDL2 rendering](snes-sdl)
- [text-to-speech using Mac library](speech)

Other repositories about PHP FFI:

- [DBus access via FFI and PHP 7.4 POC](https://github.com/paxal/php-dbus)
- [Driving webview using PHP 7.4 FFI](https://github.com/andyvanee/php-webview-ffi)
- [PHP wrapper for libsass using FFI](https://github.com/shyim/php-sass)
- [PHP TensorFlow Binding](https://github.com/dstogov/php-tensorflow)
- [FFIMe](https://github.com/ircmaxell/FFIMe)
- [A compiler. For PHP](https://github.com/ircmaxell/php-compiler)
- [PHP Webcam](https://github.com/vdechenaux/PhpWebcam)
- [Pure PHP Kafka Client library based on php7.4-dev, ffi and librdkafka](https://github.com/dirx/php-ffi-librdkafka)
- [PHP OpenGL (SDL) Demo](https://github.com/SerafimArts/opengl-demo)
- [SDL Image bindings for PHP](https://github.com/SerafimArts/ffi-sdl-ttf)
- [PHP-IUP Gui ToolKit using FFI](https://github.com/ghostjat/php-iup)
- [Shooter game written using PHP 7.4 FFI](https://github.com/darkin1/PhpShooter)

PHP FFI tricks:

- [Non blocking stin on Windows](https://gist.github.com/Nek-/118cc36d0d075febf614c53a48470490)