Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andyvanee/php-webview-ffi
Driving webview using PHP7.4 FFI
https://github.com/andyvanee/php-webview-ffi
Last synced: 2 months ago
JSON representation
Driving webview using PHP7.4 FFI
- Host: GitHub
- URL: https://github.com/andyvanee/php-webview-ffi
- Owner: andyvanee
- Created: 2019-09-04T23:35:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-04T23:40:28.000Z (over 5 years ago)
- Last Synced: 2024-08-02T07:24:00.799Z (6 months ago)
- Language: C
- Size: 41 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 bashIf 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: