Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/andyvanee/php-webview-ffi

Driving webview using PHP7.4 FFI
https://github.com/andyvanee/php-webview-ffi

Last synced: about 1 month ago
JSON representation

Driving webview using PHP7.4 FFI

Awesome Lists containing this project

README

        

# PHP-Webview-FFI

This is a test of using via FFI that
is introduced in PHP 7.4.

# Requirements

The docker method is recommended as this involves building PHP from source.

docker build -t php-webview-ffi .
docker run --rm -it -v $(pwd):/app -e DISPLAY=host.docker.internal:0 php-webview-ffi bash

If you want to build it without docker, the Dockerfile is pretty readable and
should give you a clue as to what is required. Also note that opcache and FFI
need to be enabled and preloading `preload.php` in order for the extension to be
registered. See the `opcache` and `ffi` sections in `config/php.ini` for the
settings I'm using. More info on FFI can be found here: