0hr / php-webview

PHP bindings for Webview
56 stars 5 forks source link

Any luck with wrapping all functions in pecl extension? #11

Open crazywhalecc opened 7 months ago

crazywhalecc commented 7 months ago

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.

nazmulpcc commented 6 months ago

@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!