I'm currently trying to integrate webview into static-php-cli (Windows and Mac only) for building a single file desktop application . FFI is very flexible, but is there any simple way to write all the functions wrapper of webview.h as PHP extension functions?
I tried ext_skel.php and through my beginner-level C experience, completely unable to get it to work (on macOS, I tried dynamically linking with the WebKit framework). I also tried this extension but it appears to have been discontinued and contains older methods.
If you understand how to write PHP extensions or dynamically link system libraries and write automake checks, I'm happy to learn.
@crazywhalecc I've been working on a pecl extension, basic things are working but still needs a few improvements.
Having a single file executable for this would be cool!
I'm currently trying to integrate webview into static-php-cli (Windows and Mac only) for building a single file desktop application . FFI is very flexible, but is there any simple way to write all the functions wrapper of
webview.h
as PHP extension functions?I tried
ext_skel.php
and through my beginner-level C experience, completely unable to get it to work (on macOS, I tried dynamically linking with the WebKit framework). I also tried this extension but it appears to have been discontinued and contains older methods.If you understand how to write PHP extensions or dynamically link system libraries and write automake checks, I'm happy to learn.